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

https://github.com/dhis2/postgres-contrib

Postgres Docker image with contribution package enabled
https://github.com/dhis2/postgres-contrib

docker synced-settings

Last synced: 12 months ago
JSON representation

Postgres Docker image with contribution package enabled

Awesome Lists containing this project

README

          

# postgres-contrib

Postgres Docker image with contribution package enabled

## Why this exists

This is used by the [App Hub](https://github.com/dhis2/app-hub/blob/master/server/migrations/20191217103142_auto-uuid.js#L23)[1] to get
access to the [`uuid-ossp`](https://www.postgresql.org/docs/10/uuid-ossp.html)[2] extension in Postgres.

When this was created the official Docker image for Postgres didn't include contrib modules, and the available ones on
Docker Hub were too old for us to use because they weren't compatible with the Postgres version we are using on AWS RDS.

This can be deprecated if/when we:

- migrate to generating UUIDs on the Server in code instead of in the DB,
- use an official image that is kept up-to-date and has the contrib modules enabled.

## Links

1. https://github.com/dhis2/app-hub/blob/master/server/migrations/20191217103142_auto-uuid.js#L23
2. https://www.postgresql.org/docs/10/uuid-ossp.html