Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rUVsg-00BNAx-3f for pgsql-general@arkaria.postgresql.org; Mon, 29 Jan 2024 17:57:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rUVsf-00GIx2-1N for pgsql-general@arkaria.postgresql.org; Mon, 29 Jan 2024 17:57:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rUVsd-00GIws-4n for pgsql-general@lists.postgresql.org; Mon, 29 Jan 2024 17:57:12 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rUVsW-004NTj-OT for pgsql-general@lists.postgresql.org; Mon, 29 Jan 2024 17:57:10 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 5B46F5C0184; Mon, 29 Jan 2024 12:57:02 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 29 Jan 2024 12:57:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1706551022; x=1706637422; bh=YFZMYDXOqtvIt2vfB1EWhEJGgwNtDMaRqVLdCgJtPiI=; b= Dd6PA5uec+fxgsystT33ALWKsuBT0xpK8PnNIfh6XW5rSUSehRt3HRT4zeQ2AX8A 6RHI1tvBoj70boQXiWM+dUVgOTeQhsh/JtzxReAiLc98UYhQ28VVC0Nd94RNgjwx vOvYU1/HDCC5vJgHh7lidLOB90U4T7G4ciNWqZ6tfKuvpO+LfZRV14F0kx2zqbBJ h/uF968Wpr+rHMlQ2+5SE7qdAL+xHNd2LE0+QdUc08feQpxh0478gB0yNHnvtGx0 597+VbEznSW7bgjLgu4nVgZNS/anc6Kj8AZcukg7BOQkZcVYnrNzlEQEWKxUZVhM RiipkG+7VOAwwZZtuYGDow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1706551022; x= 1706637422; bh=YFZMYDXOqtvIt2vfB1EWhEJGgwNtDMaRqVLdCgJtPiI=; b=x zSlB41VMDsOqGRa+lFS5CZe60EEKVWcB1eOZlFSoqE65XeI+ZfAnMnWqBboV3ex3 /3IyB2mmilUZ6BkYrz4i1yLrtcy0s+VQZjarPz3IraB45YdXKKY+iTUxu3IyHa7p oVsKy+v21JePJsRR76UT36rDGAYpbtBXo8+Na/rQsH4fIRf012LxyrMg3BhmTJA1 2qiifwxW0X+NkpN4WyuSZzR8/zWdX8eyeHDe4QT2gxxnX90ZLw20r3pWpJwlI9b8 blPA1eJDJS7G1dAgzvIzfkXs78xKgL4REud3MQXnnPZgo2exwfg1u7NfxAb1BBtG 9wHsdgRs0ZrUxGbOtO5YQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfedtgedgleehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhephfeviefhveelffeftdehudekveefhfeftdegieef veetfffgfeehtdfftedutedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 29 Jan 2024 12:57:01 -0500 (EST) Message-ID: <7ad098f4-9844-4051-b100-8d3e2292be59@aklaver.com> Date: Mon, 29 Jan 2024 09:57:00 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Scriptable way to validate a pg_dump restore ? Content-Language: en-US To: Shaheed Haque Cc: Laura Smith , postgre References: From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 1/29/24 09:28, Shaheed Haque wrote: > > Right, for me, state, not just record count is what I'm interested in > (for the initial full table copy part of replication). So, given the > explanation about the possible per-table window, is there some property > of the table that could be used to confirm that a table has made it across? > > I guess there is such a thing since the following incremental syncing > would presumably need it. I had hoped the LSN was this thing, but > confirmation would be great. The OP was referring to the pg_dump/pg_restore cycle, you seem to be referring to logical replication. Is that correct? > > Thanks, Shaheed > > > > > > Thanks ! > > > > Laura > > > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > > > -- Adrian Klaver adrian.klaver@aklaver.com