PostgreSQL custom aggregate greatest running total implemented in PL/pgSQL and C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
Makefile
README.md
custom_aggregate.sql
grt.c
grt.sql
queries.sql
structure.sql

README.md

Custom Aggregate Greatest Running Total

This is the source code for the 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