pg-custom-aggregate-grt
pg-custom-aggregate-grt copied to clipboard
PostgreSQL custom aggregate greatest running total implemented in PL/pgSQL and C
trafficstars
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