PostgreSQL Docker Images
Supported tags
12-bullseye,12.10-bullseye,12.10-2.5.2-bullseye,12-2.5-bullseye12-buster,12.8-buster,12.8-2.5.2-buster,12-2.5-buster12,12.8,12.8-1.7.4,12-1.711-to-12-buster-upgrade9.6-to-12-upgrade11-buster,11.13-buster,11.13-1.7.4-buster,11-1.7-buster11,11.13,11.13-1.7.4,11-1.79.6-dev,9.6.22-dev,9.6.22-1.6.1-dev,9.6-1.6-dev9.6,9.6.22,9.6.22-1.6.1,9.6-1.6
Extensions
These Docker images for PostgreSQL include a few improvements to the official images.
| Image | PostgeSQL | TimescaleDB | PostGIS | pglogical | Repmgr |
|---|---|---|---|---|---|
| 12-bullseye | 12 | 2.5.2 | 2.5.5 | 2.4.1 | x |
| 12-buster | 12 | 1.7.4, 2.5.2 | 2.5 | 2.3.3 | x |
| 11-buster | 11 | 1.7.4 | 2.5 | x | latest |
| 11-debian | 11 | 1.7.4 | 2.5 | x | latest |
REF:
Timescale versions
| TS / PG | PG 11 | PG 12 | PG 13 | PG 14 |
|---|---|---|---|---|
| 1.6.x | ✓ | x | x | x |
| 1.7.x | ✓ | ✓ | x | x |
| 2.0.x | ✓ | ✓ | x | x |
| 2.1.x | ✓ | ✓ | ✓ | x |
| 2.2.x | ✓ | ✓ | ✓ | x |
| 2.3.X | ✓ | ✓ | ✓ | x |
| 2.4.X | x | ✓ | ✓ | x |
| 2.5.X | x | ✓ | ✓ | ✓ |
Upgrade
docker run --rm -i -v $(DATA_DIR):/var/lib/postgresql -e POSTGRES_PASSWORD=password panubo/postgres:11-to-12-buster-upgrade -O "-c timescaledb.restoring='on'" --link
Known Upgrade Issues
- The VIEW created by prometheus-exporter can cause pg_upgrade to fail. If this occurs you should remove
postgres_exporter.pg_stat_activityand re-install post upgrade with/usr/local/bin/docker-initdb-run /docker-entrypoint-initdb.d/prometheus-exporter.sh. - Postgres images 9.6-dev and 12 have
POSTGRES_INITDB_ARGS="--data-checksum"by default which will conflict if the source was not using data checksum. You can setPOSTGRES_INITDB_ARGS=""to avoid the issue during upgrade. - The
9.6-to-12-upgradeimage does NOT support timescaledb upgrade.
Known issues:
- E: Package 'postgresql-11-postgis-2.4-scripts' has no installation candidate

