Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jackc/pg-custom-aggregate-grt
PostgreSQL custom aggregate greatest running total implemented in PL/pgSQL and C
https://github.com/jackc/pg-custom-aggregate-grt
Last synced: 24 days ago
JSON representation
PostgreSQL custom aggregate greatest running total implemented in PL/pgSQL and C
- Host: GitHub
- URL: https://github.com/jackc/pg-custom-aggregate-grt
- Owner: jackc
- License: mit
- Created: 2016-02-05T22:03:44.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-10T02:37:00.000Z (over 8 years ago)
- Last Synced: 2023-03-10T19:08:35.318Z (over 1 year ago)
- Language: PLpgSQL
- Size: 2.93 KB
- Stars: 16
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Custom Aggregate Greatest Running Total
This is the source code for the [Custom Aggregates in PostgreSQL](https://hashrocket.com/blog/posts/custom-aggregates-in-postgresql) blog post.
To load the test data:
```
psql -f structure.sql
```To install the PL/pgSQL custom aggregate:
```
psql -f custom_aggregate.sql
```To install the C custom aggregate:
```
make install
psql -f grt.sql
```## License
MIT