Closed jacopofar closed 9 months ago
That's weird -- I thought the timezone list for PostgreSQL came from tzdata
in the distro, and looking at https://packages.debian.org/file:Europe/Kyiv, I don't see it until I switch to tzdata
from the yet-unreleased Bookworm release, so I think that might be related? :thinking:
Yes, I suspect this could be the reason.
Bullseye has tzdata 2021a-1+deb11u8 https://packages.debian.org/bullseye/tzdata While Sid and Bookworm have 2022g-4/5 and this specific change was introduced in 2022g-1.
This same problem happens also with Mexico/Ciudad_Juarez
and a few others, I know that Debian tends to be on older version of packages but I'd expect tzdata to be an exception.
Anyways, looking at this conversation it seems there's an option to use builtin timezone data rather than the one from the system, could it be an option? That version is up to date to 2022g so it would solve the issue
it seems there's an option to use builtin timezone data rather than the one from the system, could it be an option?
Unfortunately, we just install the deb packages managed by the PostgreSQL community, so we can't change how they are built:
The Alpine based images do build from source and set the with-system-tzdata
flag:
Pity, thank for the answer.
So the build has to wait for the distros to update their data. I don't really know where and how to report this to Debian, but think this ticket can be closed.
If someone comes here with the same problem, I can add I had it with Amazon RDS version, could not find details on the tzdata but updating from Postgres 14.5 to 14.6 did fix it, so it seems they use the tzdata incorporated in Postgres.
Wanted to add that now Debian has a new release with updated tzdata (although presumably the problem will happen again with future tzdata updates if Debian doesn't update it), this works on the Docker images for Postgres 14.7 and 14.8, but not 14.6.
Probably this can be closed.
Hello, looking at the release notes of Postgres 14.6 it's mentioned that
Europe/Kyiv
should be available as a timezone name. If I try to use it in a freshly pulled image however it does not seem to work.I start it with this command, which also triggers the pull
then I get a shell with
docker exec -it 04cb9ab5237f
(where 04cb9ab5237f is the id of the container just started) and runpsql -U postgres
I checked with:
am I missing something here? Is it possible that the docker build differs regarding timezones? I have the very same problem on the image for postgres 15.1