Skip to content

Conversation

@jwnx
Copy link

@jwnx jwnx commented Jan 16, 2026

The original entrypoint (bootstrap-postgres-ha.sh) somehow doesn't
exist anymore. This is probably due to an update in the base image that
we missed. Funny enough, the postgres-operator overrides the entrypoint,
so we haven't seen any failures.

This patch will be accompanied by an update to postgres-operator that
uses the entrypoint-wrapper if a new flag file is present (required for
backwards compatibility and safe rollout):

/usr/local/bin/.entrypoint-wrapper-version

Additionally, we add to the postgres-oom-adjuster script shared memory
cleanup when it can't find the postmaster. This is a workaround that
allow us to recover from PID reuse failures caused by patroni concurrently
demoting a replica. The proper fix is upgrading to Patroni >= 4.0.6.

Ref.: patroni/patroni#3372

Signed-off-by: Juliana Oliveira juliana@fly.io

jwnx added 3 commits January 16, 2026 20:35
The original entrypoint (bootstrap-postgres-ha.sh) somehow doesn't
exist anymore. This is probably due to an update in the base image that
we missed. Funny enough, the postgres-operator overrides the entrypoint,
so we haven't seen any failures.

This patch will be accompanied by an update to postgres-operator that
uses the entrypoint-wrapper if a new flag file is present (required for
backwards compatibility and safe rollout):

/usr/local/bin/.entrypoint-wrapper-version

Additionally, we add to the postgres-oom-adjuster script shared memory
cleanup when it can't find the postmaster. This is a workaround that
allow us to recover from PID reuse failures caused by patroni concurrently
demoting a replica. The proper fix is upgrading to Patroni >= 4.0.6.

Ref.: patroni/patroni#3372

Signed-off-by: Juliana Oliveira <juliana@fly.io>
Signed-off-by: Juliana Oliveira <juliana@fly.io>
Signed-off-by: Juliana Oliveira <juliana@fly.io>
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

Successfully merging this pull request may close these issues.

2 participants