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 1pIJQW-0005Ox-QD for pgsql-general@arkaria.postgresql.org; Thu, 19 Jan 2023 01:09:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pIJQV-0002wn-FK for pgsql-general@arkaria.postgresql.org; Thu, 19 Jan 2023 01:09:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pIJQV-0002we-4o for pgsql-general@lists.postgresql.org; Thu, 19 Jan 2023 01:09:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pIJQS-0001Wn-RI for pgsql-general@lists.postgresql.org; Thu, 19 Jan 2023 01:09:10 +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 30J190tV3967468; Wed, 18 Jan 2023 20:09:01 -0500 From: Tom Lane To: Erik Wienhold cc: Ian Lawrence Barwick , "Hilbert, Karin" , "pgsql-general@lists.postgresql.org" Subject: Re: Database size different on Primary and Standby? In-reply-to: <1018934732.57323.1674089227907@office.mailbox.org> References: <1852652390.56939.1674085819457@office.mailbox.org> <1018934732.57323.1674089227907@office.mailbox.org> Comments: In-reply-to Erik Wienhold message dated "Thu, 19 Jan 2023 01:47:07 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3967466.1674090540.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 18 Jan 2023 20:09:00 -0500 Message-ID: <3967467.1674090540@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Erik Wienhold writes: > On 19/01/2023 01:23 CET Ian Lawrence Barwick wrote: >> This is incorrect; with streaming replication all changes applied on th= e primary >> are applied on the standby. > Thanks. I was thinking about logical replication. It's not entirely clear whether the OP is talking about physical or logical replication --- the discrepancy would sure be a lot easier to explain if it is logical rep. In physical rep the databases *should* be pretty much physically identical. I think though that the amount of WAL that's being kept around could be different. regards, tom lane