1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-11-17 13:02:40 +03:00
Commit Graph

941 Commits

Author SHA1 Message Date
Docker Library Bot
7de0b51da5 Update 14 to 14.20, trixie 14.20-1.pgdg13+1, bookworm 14.20-1.pgdg12+1 2025-11-13 11:20:42 -08:00
Docker Library Bot
c2d83d0b2a Update 13 to 13.23, trixie 13.23-1.pgdg13+1, bookworm 13.23-1.pgdg12+1 2025-11-13 11:02:15 -08:00
yosifkit
23987751b6 Merge pull request #1372 from infosiftr/more-graceful-error
Remove intentionally-breaking "data" symlink and add better detection
2025-10-21 17:04:53 -07:00
Tianon Gravi
5ec8931249 Remove intentionally-breaking "data" symlink and add better detection
This allows for a more graceful error message for the case of users who need to update their volume path.

I tested this with 17 and `--env PGDATA=/var/lib/postgresql/17/docker` (to make sure it still works fine and doesn't complain about the extra volume provided by Docker/`VOLUME`) and 18 with `-v /var/lib/postgresql/data` (where it appropriately errors and explains to me what I should be doing instead).

I also did a reflow on some text in the error message that's designed to fit in 80 columns but was taking 81. 😂
2025-10-15 11:23:03 -07:00
Tianon Gravi
06388fc682 Merge pull request #1366 from infosiftr/liburing
Add liburing support to 18+
2025-09-30 12:54:48 -07:00
Tianon Gravi
2c751341b6 Add liburing support to 18+
This is a bit complicated to use in Docker (because `io_uring` has a long and storied security story), but it is a new feature of 18+ that we should probably explicitly support for users who want to jump through the hoops to use it despite the security risk.

Additionally, this re-alphabetizes our `--with-xxx` flags.
2025-09-30 11:58:13 -07:00
Tianon Gravi
304578a4b4 Update latest to 18 2025-09-25 12:46:37 -07:00
Docker Library Bot
22ca5c8d8e Update 18 to 18.0, trixie 18.0-1.pgdg13+3, bookworm 18.0-1.pgdg12+3 2025-09-25 11:22:35 -07:00
Docker Library Bot
87e6f65859 Update 17 to trixie 17.6-2.pgdg13+1, bookworm 17.6-2.pgdg12+1 2025-09-25 11:02:43 -07:00
Tianon Gravi
a2433755c7 Update gosu to 1.19 2025-09-23 12:31:05 -07:00
Tianon Gravi
a3b3bfabd3 Update gosu to 1.18 2025-09-08 13:04:25 -07:00
Docker Library Bot
5ab2c9dd1d Update 18 to 18rc1, trixie 18~rc1-1.pgdg13+1, bookworm 18~rc1-1.pgdg12+1 2025-09-04 17:02:55 -07:00
Tianon Gravi
bbf07d500b Merge pull request #1359 from pjonsson/update-apt-repo-url
debian: align postgres repo url with docs
2025-09-03 15:45:03 -07:00
Peter A. Jonsson
abab72cc73 debian: align postgres repo url with docs
The PostgreSQL documentation for packages
(https://www.postgresql.org/download/linux/ubuntu/)
does not have a trailing slash.
2025-09-03 23:48:27 +02:00
Docker Library Bot
8d2eba6040 Update 18 to 18beta3, trixie 18~beta3-1.pgdg130+1, bookworm 18~beta3-1.pgdg120+1 2025-08-14 10:31:22 -07:00
Docker Library Bot
e34fc9d23c Update 17 to 17.6, trixie 17.6-1.pgdg13+1, bookworm 17.6-1.pgdg12+1 2025-08-14 10:12:46 -07:00
Docker Library Bot
1cb68aee8f Update 16 to 16.10, trixie 16.10-1.pgdg13+1, bookworm 16.10-1.pgdg12+1 2025-08-14 09:56:05 -07:00
Docker Library Bot
b8ab4185a3 Update 15 to 15.14, trixie 15.14-1.pgdg13+1, bookworm 15.14-1.pgdg12+1 2025-08-14 09:40:39 -07:00
Docker Library Bot
836ebeb884 Update 14 to 14.19, trixie 14.19-1.pgdg13+1, bookworm 14.19-1.pgdg12+1 2025-08-14 09:25:20 -07:00
Docker Library Bot
1984f1787a Update 13 to 13.22, trixie 13.22-1.pgdg13+1, bookworm 13.22-1.pgdg12+1 2025-08-14 09:07:16 -07:00
yosifkit
78b0bca69b Merge pull request #1354 from infosiftr/trixie
Add Debian Trixie (remove Bullseye)
2025-08-11 16:31:17 -07:00
Tianon Gravi
176bc3c3f0 Add Debian Trixie (remove Bullseye)
Also, update `versions.json` sorting to be saner/stabler.
2025-08-08 10:41:29 -07:00
Docker Library Bot
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
yosifkit
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
Tianon Gravi
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
yosifkit
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
Tianon Gravi
2c6fe8daca Add logic to error out on detection of "old databases" 2025-06-06 11:27:47 -07:00
Tianon Gravi
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
yosifkit
c257dcc6cf Merge pull request #1344 from reneleonhardt/chore/add-postgres-18
chore: add postgres 18 beta1
2025-06-06 11:25:15 -07:00
Rene Leonhardt
d1e97f29ba add postgres 18 beta1 2025-06-04 15:38:23 -07:00
yosifkit
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
Tianon Gravi
172d9e7dbc Add Alpine 3.22 (remove Alpine 3.20) 2025-05-30 14:09:41 -07:00
Tianon Gravi
833dab59cc Merge pull request #1341 from infosiftr/drop-pgdg-keyring
Update apt build depend
2025-05-22 09:25:57 -07:00
Joseph Ferguson
d9c4773ca5 Update apt build depend 2025-05-21 17:48:07 -07:00
Tianon Gravi
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
Tianon Gravi
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
Tianon Gravi
266748257c Update to 17.5, 16.9, 15.13, 14.18, 13.21 2025-05-08 10:29:08 -07:00
Paul Liétar
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
Docker Library Bot
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
Docker Library Bot
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
Docker Library Bot
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
Docker Library Bot
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
Docker Library Bot
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
Docker Library Bot
a537d6002b Update 17 to bookworm 17.3-3.pgdg120+1, bullseye 17.3-3.pgdg110+1 2025-02-16 11:03:06 -08:00
Docker Library Bot
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
Docker Library Bot
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
Docker Library Bot
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
Docker Library Bot
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
Docker Library Bot
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
Tianon Gravi
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