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: 8 months 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 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-10T02:37:00.000Z (over 9 years ago)
- Last Synced: 2025-01-26T07:08:10.392Z (9 months ago)
- Language: PLpgSQL
- Size: 2.93 KB
- Stars: 16
- Watchers: 3
- 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