Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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