Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eatonphil/pgext-101
Bare minimal Postgres extension
https://github.com/eatonphil/pgext-101
Last synced: about 1 month ago
JSON representation
Bare minimal Postgres extension
- Host: GitHub
- URL: https://github.com/eatonphil/pgext-101
- Owner: eatonphil
- License: mit
- Created: 2023-10-30T16:51:25.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-02T01:22:28.000Z (about 1 year ago)
- Last Synced: 2024-05-02T02:09:11.857Z (7 months ago)
- Language: C
- Size: 1.95 KB
- Stars: 19
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pgext: a bare minimum Postgres extension
[PGXS](https://www.postgresql.org/docs/current/extend-pgxs.html) is a
helper for Makefiles to build Postgres extensions.It is entirely dependent on naming conventions. Every file and line in
here is necessary. Try deleting whatever you think is useless and
you'll get the idea.To set up (you probably need `postgresql-server-devel` or equivalent
from your package manager):```
$ make
$ sudo make install
$ psql
postgres=# CREATE EXTENSION pgext;
CREATE EXTENSION
postgres=# SELECT pgext.add_one(100);
add_one
---------
101
(1 row)
```Read through all the committed files and the linked PGXS docs to
better understand.