Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mcfRb-0005W1-1R for pgsql-general@arkaria.postgresql.org; Tue, 19 Oct 2021 03:05:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mcfRZ-0008Fb-Vf for pgsql-general@arkaria.postgresql.org; Tue, 19 Oct 2021 03:05:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mcfRZ-0008FS-Lv for pgsql-general@lists.postgresql.org; Tue, 19 Oct 2021 03:05:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mcfRX-00030W-P3 for pgsql-general@lists.postgresql.org; Tue, 19 Oct 2021 03:05:36 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 19J35XKu1736812; Mon, 18 Oct 2021 23:05:34 -0400 From: Tom Lane To: Chris Williams cc: pgsql-general@lists.postgresql.org Subject: Re: Unsynchronized parallel dumps from 13.3 replica produced by pg_dump In-reply-to: References: Comments: In-reply-to Chris Williams message dated "Mon, 18 Oct 2021 17:37:01 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1736810.1634612733.1@sss.pgh.pa.us> Date: Mon, 18 Oct 2021 23:05:33 -0400 Message-ID: <1736811.1634612733@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Chris Williams 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