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

31 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Tianon Gravi
2c6fe8daca Add logic to error out on detection of "old databases" 2025-06-06 11:27:47 -07:00
Tianon Gravi
172d9e7dbc Add Alpine 3.22 (remove Alpine 3.20) 2025-05-30 14:09:41 -07:00
Joseph Ferguson
d9c4773ca5 Update apt build depend 2025-05-21 17:48:07 -07: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
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
Joseph Ferguson
042d8d043f Remove PostgreSQL 12 since it is end of life 2025-02-03 16:55:44 -08:00
Jeremy Schneider
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
Joseph Ferguson
17818f21dc In Alpine 3.21 bump llvm version
Fixes #1296
2024-12-05 16:14:30 -08:00
Paolo Barbolini
1075ab7060 Update Alpine to 3.21 2024-12-05 22:12:14 +00:00
Docker Library Bot
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
Docker Library Bot
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
Docker Library Bot
172544062d Update 17 to 17.0, bookworm 17.0-1.pgdg120+1, bullseye 17.0-1.pgdg110+1 2024-09-26 11:19:57 -07:00
Docker Library Bot
eaa1c35769 Update 17 to 17rc1, bookworm 17~rc1-1.pgdg120+1, bullseye 17~rc1-1.pgdg110+1 2024-09-05 06:44:37 -07:00
Docker Library Bot
805329e7a6 Update 17 to 17beta3, bookworm 17~beta3-1.pgdg120+1, bullseye 17~beta3-1.pgdg110+1 2024-08-08 10:34:59 -07:00
Tianon Gravi
a09f1c441f Use install instead of mkdir && chown && chmod 2024-07-08 15:18:09 -07:00
Docker Library Bot
9bf5a6d620 Update 17 to 17beta2, bookworm 17~beta2-1.pgdg120+1, bullseye 17~beta2-1.pgdg110+1 2024-07-01 17:03:06 -07:00
Tianon Gravi
3e9b4eaaeb Replace su-exec with gosu
There's a major issue with `su-exec` whose fix has gone unreleased for 5 years (typos leading to running code as root, the opposite of the purpose of the program).

This also decreases our Debian vs Alpine variance.

Due to user scripts/downstream code potentially using `su-exec`, I have included a compatibility symlink to `su-exec` for all versions less than the 17 pre-release.
2024-06-03 13:57:56 -07:00
Laurent Goderre
3a7be2f321 fixup 2024-05-31 09:43:40 -04:00
Laurent Goderre
41402ac3d1 Add 17 beta1
Fixes #1243
2024-05-29 17:09:26 -04:00