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

Allow synchronous snapshot on replicas and in RDS/Aurora #235

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bdavisab
Copy link

@bdavisab bdavisab commented May 31, 2024

Synchronized snapshots are supported on replicas starting with PostgreSQL 10, and they're also supported in RDS/Aurora.

The change in Postgres 10 didn't make it into the release notes, but I found this https://github.com/postgres/postgres/blob/master/src/bin/pg_dump/pg_dump.c#L1343

Postgres 9.6 is super old now, even 10 and 11 aren't supported anymore, and 12 will be EOL in November. So I think it's reasonable to simply drop the version checks. But we can keep the guards in too if you prefer, happy to update.

Tested with an Aurora replica, and that works just fine as well.

It's true that in #134 , pg_stat_get_wal_receiver() isn't supported in Aurora, but that's just used to check if it's a replica or not, which since PG10, we don't need to worry about.

I assume that the people reporting this issue #90 were just using ancient versions of Postgres. Maybe that's an argument for keeping a version check? Let me know what you think.

Synchronized snapshots are supported on replicas since
PostgreSQL 10.  They're also supported in RDS/Aurora.
Postgres 10 and 11 are out of support, so it should be
reasonable to simply allow without checking for version
number.
@JelteF
Copy link

JelteF commented Nov 4, 2024

Took a quick look at this. My understanding is that this combines two things into one PR:

  1. Removing support for Postgres 9.6 (which seems reasonable to me)
  2. Supporting synchronous snapshots in AWS Aurora.

I personally would prefer these two things to be done in separate PRs, but I'm not a maintainer on this repo.

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