1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-07-29 21:41:20 +03:00

919 Commits

Author SHA1 Message Date
889f9447cd Update 18 to 18beta2, bookworm 18~beta2-1.pgdg120+1, bullseye 18~beta2-1.pgdg110+1 2025-07-18 11:03:02 -07:00
38b3c10a48 Merge pull request #1345 from infosiftr/conditional-jit
Only install 18+ JIT package on architectures where it's supported
2025-06-09 15:02:10 -07:00
46e8474a6e Only install 18+ JIT package on architectures where it's supported
See:

- eaa9529d8e
  "Make LLVM architectures a inclusion list so it works in the Architecture field."
  (which removes i386, notably)

- 1d6f624592
  "Disable JIT on loong64 and riscv64 again, still segfaulting."
2025-06-09 14:23:06 -07:00
6ec0e42428 Merge pull request #1259 from infosiftr/pgdata-cluster
Change `PGDATA` in 18+ to `/var/lib/postgresql/MAJOR/docker`
2025-06-06 12:01:16 -07:00
2c6fe8daca Add logic to error out on detection of "old databases" 2025-06-06 11:27:47 -07:00
b9a533c87b Change PGDATA in 18+ to /var/lib/postgresql/MAJOR/docker
This is a pretty large breaking change, which is why this only makes the change in 18+ (which is currently in pre-release stages, and not due for GA until September, and pre-release `PGDATA` directories are officially *not supported* on the GA release anyhow).

Concretely, this changes `PGDATA` to `/var/lib/postgresql/MAJOR/docker`, which matches the pre-existing convention/standard of the `pg_ctlcluster`/`postgresql-common` set of commands, and frankly is what we should've done to begin with, in a classic case of Chesterton's Fence (https://en.wikipedia.org/wiki/Wikipedia:Chesterton%27s_fence).

This also changes the `VOLUME` to `/var/lib/postgresql`, which should be more reasonable, and make the upgrade constraints more obvious.

For any users who have been testing the pre-releases, the simplest way to keep your existing data directory is going to be to add `PGDATA=/var/lib/postgresql/data` as an environment variable on your container or adjust your bind-mount from `/var/lib/postgresql/data` to `/var/lib/postgresql/18/docker`, but the *best* way is going to be to refactor your host directory such that your data lives at `18/docker` inside and you can then mount directly to `/var/lib/postgresql` (possibly setting `PGDATA=/var/lib/postgresql/MAJOR/docker` as well, if you want to go overboard on being explicit).
2025-06-06 11:27:31 -07:00
c257dcc6cf Merge pull request #1344 from reneleonhardt/chore/add-postgres-18
chore: add postgres 18 beta1
2025-06-06 11:25:15 -07:00
d1e97f29ba add postgres 18 beta1 2025-06-04 15:38:23 -07:00
86e50408e6 Merge pull request #1342 from infosiftr/alpine3.22
Add Alpine 3.22 (remove Alpine 3.20)
2025-05-30 15:13:08 -07:00
172d9e7dbc Add Alpine 3.22 (remove Alpine 3.20) 2025-05-30 14:09:41 -07:00
833dab59cc Merge pull request #1341 from infosiftr/drop-pgdg-keyring
Update apt build depend
2025-05-22 09:25:57 -07:00
d9c4773ca5 Update apt build depend 2025-05-21 17:48:07 -07:00
437897caba Merge pull request #1340 from infosiftr/update
Update to 17.5, 16.9, 15.13, 14.18, 13.21
2025-05-08 18:55:18 +00:00
b23470265c Remove explicit config.guess/config.sub updates
When we added these lines, we needed newer files than PostgreSQL had upstream, but the situation has changed and we were pinned to a specific commit from 2017 - the _oldest_ PostgreSQL release version has a file from 2020.
2025-05-08 11:32:48 -07:00
266748257c Update to 17.5, 16.9, 15.13, 14.18, 13.21 2025-05-08 10:29:08 -07:00
cc254e85ed Unset NOTIFY_SOCKET when running the temporary server. (#1325)
* Unset NOTIFY_SOCKET when running the temporary server.

Postgres has native support for this notification socket and will write a `READY=1` message once it is ready and accepting connections. Unfortunately, the temporary server used by the `docker-entrypoint.sh` also sends a message on the socket, making it appear as though the container is ready and serving connections when it is not.
2025-02-26 16:53:12 -08:00
729d22b104 Update 17 to 17.4, bookworm 17.4-1.pgdg120+2, bullseye 17.4-1.pgdg110+2 2025-02-20 11:59:30 -08:00
ce5da348e7 Update 16 to 16.8, bookworm 16.8-1.pgdg120+1, bullseye 16.8-1.pgdg110+1 2025-02-20 11:44:40 -08:00
807e218040 Update 15 to 15.12, bookworm 15.12-1.pgdg120+1, bullseye 15.12-1.pgdg110+1 2025-02-20 11:30:20 -08:00
dabb1fcefb Update 14 to 14.17, bookworm 14.17-1.pgdg120+1, bullseye 14.17-1.pgdg110+1 2025-02-20 11:16:15 -08:00
2f7aa21430 Update 13 to 13.20, bookworm 13.20-1.pgdg120+1, bullseye 13.20-1.pgdg110+1 2025-02-20 11:02:25 -08:00
a537d6002b Update 17 to bookworm 17.3-3.pgdg120+1, bullseye 17.3-3.pgdg110+1 2025-02-16 11:03:06 -08:00
22dad776d9 Update 17 to 17.3, bookworm 17.3-1.pgdg120+1, bullseye 17.3-1.pgdg110+1 2025-02-13 11:01:08 -08:00
c17c1aad6b Update 16 to 16.7, bookworm 16.7-1.pgdg120+1, bullseye 16.7-1.pgdg110+1 2025-02-13 10:46:14 -08:00
607fdbdadc Update 15 to 15.11, bookworm 15.11-1.pgdg120+1, bullseye 15.11-1.pgdg110+1 2025-02-13 10:31:47 -08:00
4bc3d04127 Update 14 to 14.16, bookworm 14.16-1.pgdg120+1, bullseye 14.16-1.pgdg110+1 2025-02-13 10:17:09 -08:00
7da49aaa6a Update 13 to 13.19, bookworm 13.19-1.pgdg120+1, bullseye 13.19-1.pgdg110+1 2025-02-13 10:01:24 -08:00
3521b2f752 Merge pull request #1312 from infosiftr/eol-12
Remove PostgreSQL 12 since it is end of life
2025-02-04 11:42:03 -08:00
042d8d043f Remove PostgreSQL 12 since it is end of life 2025-02-03 16:55:44 -08:00
e2a43025b1 Update 12 to bookworm 12.22-2.pgdg120+1, bullseye 12.22-2.pgdg110+1 2025-01-24 05:02:25 -08:00
32b6fcdda7 Remove inaccurate references to corruption, remove SEGTERM suggestion… (#1303)
* Remove inaccurate references to corruption, remove SEGTERM suggestion, update information links to current docs. Postgres is carefully designed such that data is not corrupted on crashes or unclean shutdowns - the main tradeoff is that WAL replay is needed on startup. In practice, SIGTERM can cause unexpected long delays to shutdowns - often during maintenance windows - so best not to actively suggest this. The links back to official Postgres documentation seem sufficient.
2025-01-09 09:56:49 -08:00
cb049360d9 Simplify and update verify-templating.yml
This makes it print out a diff when there is an error (instead of just a list of files that are wrong), which will make the error more obvious.
2024-12-13 15:02:43 -08:00
1577814922 Merge pull request #1299 from infosiftr/alpine
In Alpine 3.21 bump llvm version
2024-12-06 13:45:51 -08:00
17818f21dc In Alpine 3.21 bump llvm version
Fixes #1296
2024-12-05 16:14:30 -08:00
0f542bc35e Merge pull request #1298 from paolobarbolini/alpine3.21
Update Alpine to 3.21
2024-12-05 15:57:18 -08:00
1075ab7060 Update Alpine to 3.21 2024-12-05 22:12:14 +00:00
0b87a9bbd2 Update 17 to 17.2, bookworm 17.2-1.pgdg120+1, bullseye 17.2-1.pgdg110+1 2024-11-21 12:16:44 -08:00
960ebdf14e Update 16 to 16.6, bookworm 16.6-1.pgdg120+1, bullseye 16.6-1.pgdg110+1 2024-11-21 12:14:24 -08:00
50b4cdb50e Update 15 to 15.10, bookworm 15.10-1.pgdg120+1, bullseye 15.10-1.pgdg110+1 2024-11-21 12:12:11 -08:00
c444845833 Update 14 to 14.15, bookworm 14.15-1.pgdg120+1, bullseye 14.15-1.pgdg110+1 2024-11-21 12:09:59 -08:00
9fadd0e250 Update 13 to 13.18, bookworm 13.18-1.pgdg120+1, bullseye 13.18-1.pgdg110+1 2024-11-21 12:07:48 -08:00
5f590b8df7 Update 12 to 12.22, bookworm 12.22-1.pgdg120+1, bullseye 12.22-1.pgdg110+1 2024-11-21 12:05:42 -08:00
7a1418a24d Update README
See https://github.com/docker-library/docs/pull/2503
2024-11-21 10:50:21 -08:00
b64a17080e Update 17 to 17.1, bookworm 17.1-1.pgdg120+1, bullseye 17.1-1.pgdg110+1 2024-11-14 11:48:01 -08:00
f6c1f5b376 Update 16 to 16.5, bookworm 16.5-1.pgdg120+1, bullseye 16.5-1.pgdg110+1 2024-11-14 11:34:05 -08:00
89e0c9265d Update 15 to 15.9, bookworm 15.9-1.pgdg120+1, bullseye 15.9-1.pgdg110+1 2024-11-14 11:20:16 -08:00
9c7abb997a Update 14 to 14.14, bookworm 14.14-1.pgdg120+1, bullseye 14.14-1.pgdg110+1 2024-11-14 11:06:51 -08:00
9f3bef00aa Update 13 to 13.17, bookworm 13.17-1.pgdg120+1, bullseye 13.17-1.pgdg110+1 2024-11-14 10:53:24 -08:00
cbe3b78084 Update 12 to 12.21, bookworm 12.21-1.pgdg120+1, bullseye 12.21-1.pgdg110+1 2024-11-14 10:38:07 -08:00
0f80628c99 Merge pull request #1280 from docker-library/jq-IN
Use jq's `IN()` instead of `index()`
2024-10-16 15:30:10 -07:00