From: Tom Lane <tgl@sss.pgh.pa.us>
To: Chris Williams <cswilliams@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Unsynchronized parallel dumps from 13.3 replica produced by pg_dump
Date: Mon, 18 Oct 2021 23:05:33 -0400
Message-ID: <1736811.1634612733@sss.pgh.pa.us> (raw)
In-Reply-To: <CAGj2PiRtNYvGjx7zSHef2qo5LBSPNTbkUM3obtsPK2uAB-fj4w@mail.gmail.com>
References: <CAGj2PiRtNYvGjx7zSHef2qo5LBSPNTbkUM3obtsPK2uAB-fj4w@mail.gmail.com>
Chris Williams <cswilliams@gmail.com> writes:
> We have a script that runs a pg_dump off of an RDS PG13.3 replica several
> times per day. We then load this dump using pg_restore into another
> postgres RDS db in another AWS account, scrub some of the data, and then
> take a snapshot of it.
Hmm ... I'm fairly sure that RDS Postgres is not Postgres at this level
of detail. The info I've been able to find about their replication
mechanism talks about things like "eventually consistent reads", which
is not something community Postgres deals in.
In particular, what I'd expect from the community code is that a replica
could see a sequence as being *ahead* of the value that you might expect
from looking at related tables; but never behind. (Also, that statement
is true regardless of whether you are doing parallel dump.) And
non-sequence tables should always be consistent, period.
So I'm suspicious that this is an RDS-specific effect, and thus that
you should consult Amazon support first. If they say "no, it's Postgres
all the way down", then we need to look closer.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, cswilliams@gmail.com
Subject: Re: Unsynchronized parallel dumps from 13.3 replica produced by pg_dump
In-Reply-To: <1736811.1634612733@sss.pgh.pa.us>
References: <CAGj2PiRtNYvGjx7zSHef2qo5LBSPNTbkUM3obtsPK2uAB-fj4w@mail.gmail.com> <1736811.1634612733@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox