{"id":15187483,"url":"https://github.com/ishaanadarsh/pg_plpgsql_ext","last_synced_at":"2026-03-02T02:39:47.324Z","repository":{"id":189337658,"uuid":"680499716","full_name":"IshaanAdarsh/pg_plpgsql_ext","owner":"IshaanAdarsh","description":"A PostgreSQL extension with a PL/pgSQL function to subtract numbers","archived":false,"fork":false,"pushed_at":"2023-08-19T12:52:56.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-08T22:37:55.669Z","etag":null,"topics":["gsoc","plpgsql","postgresql","postgresql-extension"],"latest_commit_sha":null,"homepage":"https://pgxn.org/dist/pg_plpgsql_ext/1.0.0/","language":"PLpgSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IshaanAdarsh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-19T12:52:19.000Z","updated_at":"2023-08-19T13:57:23.000Z","dependencies_parsed_at":"2023-08-19T13:57:43.374Z","dependency_job_id":"5bf1fbc8-2d5f-4b66-8cf9-8ede12b4aea5","html_url":"https://github.com/IshaanAdarsh/pg_plpgsql_ext","commit_stats":null,"previous_names":["ishaanadarsh/pg_plpgsql_ext"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IshaanAdarsh%2Fpg_plpgsql_ext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IshaanAdarsh%2Fpg_plpgsql_ext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IshaanAdarsh%2Fpg_plpgsql_ext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IshaanAdarsh%2Fpg_plpgsql_ext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IshaanAdarsh","download_url":"https://codeload.github.com/IshaanAdarsh/pg_plpgsql_ext/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240816479,"owners_count":19862295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gsoc","plpgsql","postgresql","postgresql-extension"],"created_at":"2024-09-27T18:23:07.986Z","updated_at":"2025-11-20T02:03:08.434Z","avatar_url":"https://github.com/IshaanAdarsh.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pg_plpgsql_ext PostgreSQL Extension\n\n**A PostgreSQL extension with a PL/pgSQL function to subtract numbers**\n\npg_plpgsql_ext is a simple PostgreSQL extension that demonstrates how to create a function using the PL/pgSQL language to subtract two numbers.\n\n## Installation\n\n1. Ensure you have PostgreSQL installed on your system.\n2. Clone or download the repository [pg_plpgsql_ext](https://github.com/IshaanAdarsh/pg_plpgsql_ext/tree/main) to your local machine.\n3. Change to the extension directory:\n\n   ```bash\n   $ cd pg_plpgsql_ext\n   ```\n\n### Build and Install\n\nTo build and install the extension, follow these steps:\n\n```bash\n$ make\n$ sudo make install\n```\n\nThis will compile the extension and install it into your PostgreSQL installation.\n\n## Usage\n\nAfter the extension is installed, you can use the `subtract_numbers` function to subtract two numbers using PL/pgSQL.\n\n```sql\n-- Load the extension\nCREATE EXTENSION pg_plpgsql_ext;\n\n-- Use the subtract_numbers function\nSELECT subtract_numbers(10, 3); -- Returns 7\n```\n\n## Uninstallation\n\nTo uninstall the extension, you can run the following SQL command:\n\n```sql\nDROP EXTENSION pg_plpgsql_ext;\n```\n\n### Contributing\n\nContributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository [pg_plpgsql_ext](https://github.com/IshaanAdarsh/pg_plpgsql_ext/tree/main).\n\n## License\n\nThis project is licensed under the [PostgreSQL License](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fishaanadarsh%2Fpg_plpgsql_ext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fishaanadarsh%2Fpg_plpgsql_ext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fishaanadarsh%2Fpg_plpgsql_ext/lists"}