Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roadmap for bookworm migration #351

Open
gbip opened this issue Jul 5, 2023 · 7 comments
Open

Roadmap for bookworm migration #351

gbip opened this issue Jul 5, 2023 · 7 comments
Assignees

Comments

@gbip
Copy link

gbip commented Jul 5, 2023

Hi,

Are there any plan to migrate from bullseye to bookworm ? How can we help ?

I am interested in using GEOS 3.11 features (for example ST_SimplifyPolygonHull), which is the version of GEOS available on debian bookworm.

Debian bullseye only has GEOS 3.9.0-1.

Best regards,

@ImreSamu
Copy link
Member

ImreSamu commented Jul 5, 2023

Are there any plan to migrate from bullseye to bookworm ?

I've been considering this for a while, but it's not that simple.

There are two expected issues with the new Debian version:
a.) libseccomp

b.) glibc + collation version mismatch

Because of these issues, some people would prefer to stay with the bullseye version, but currently the postgis/docker-postgis repository only supports one Debian version.

The ideal solution would be to support both Debian versions, for example:

  • postgis/postgis:15-3.3-bullseye
  • postgis/postgis:15-3.3-bookworm

But this would require significant restructuring, and I won't be able to start working on it in the next two weeks due to other commitments.
But if it's urgent and someone makes a PR by then, I'd be happy to help with testing.
If someone starts working on it, please indicate so here in a comment.

@ImreSamu
Copy link
Member

ImreSamu commented Aug 9, 2023

@gbip :

I wanted to let you know that I've started working on supporting multi-debian (bookworm, bullseye) and multi-alpine postgis images.

I hope to provide a minimal Pull Request soon for testing. However, I cannot commit to a specific deadline yet.

@RangaSamudrala
Copy link

Are there any plan to migrate from bullseye to bookworm ?

I've been considering this for a while, but it's not that simple.

There are two expected issues with the new Debian version: a.) libseccomp

b.) glibc + collation version mismatch

Because of these issues, some people would prefer to stay with the bullseye version, but currently the postgis/docker-postgis repository only supports one Debian version.

The ideal solution would be to support both Debian versions, for example:

  • postgis/postgis:15-3.3-bullseye
  • postgis/postgis:15-3.3-bookworm

But this would require significant restructuring, and I won't be able to start working on it in the next two weeks due to other commitments. But if it's urgent and someone makes a PR by then, I'd be happy to help with testing. If someone starts working on it, please indicate so here in a comment.

Will there be effort to support Postgis v12 using Bookworm?

@ImreSamu
Copy link
Member

@RangaSamudrala

Will there be effort to support Postgis v12 using Bookworm?

I'd definitely like to!

Development environment ( not stable ) - but you can check the plan :

PR: #356

@ImreSamu ImreSamu self-assigned this Nov 16, 2023
@zachsa
Copy link
Contributor

zachsa commented Dec 10, 2024

Hi,

I am keen on this (I like the postgis docker image, and want to extend it with another extension that has pre-built binaries for bookworm)

@ardentperf
Copy link

ardentperf commented Dec 27, 2024

FYI - quick reminder that users can't safely switch from bullseye images to bookworm images without logical pg_dump-and-load or logical replication. Switching the container image from bullseye to bookworm and keeping the same storage (whether via PVCs or StatefulSets) can corrupt your database.

Probably worth thinking about how this will work end-to-end.

The cause is the stability issues with linguistic collation (especially in libc) and a number of database corruptions have happened in recent years related to this. Here's a talk from the postgres development conference earlier this year on the topic https://www.youtube.com/watch?v=KTA6oau7tl8

This is the same issue referenced by @ImreSamu above

Supporting both bullseye and bookwork (similar to the base postgres image) should be fine

@lnicola
Copy link

lnicola commented Dec 27, 2024

While that's true, in most cases it's not real corruption, and you can fix it by refreshing the collation and/or rebuilding the affected indexes.

More importantly, it applies just as well to a native (distro package) installation and to the base postgres image. Because of that, I don't think the postgis image should "gatekeep" bookworm. Bullseye is EOL, and this decision will only make it harder for users when trixie comes out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants