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 1upCy8-000wN5-7P for pgsql-bugs@arkaria.postgresql.org; Thu, 21 Aug 2025 21:37:13 +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 1upCy5-001PO2-HP for pgsql-bugs@arkaria.postgresql.org; Thu, 21 Aug 2025 21:37:10 +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 1upCy5-001PNr-2m for pgsql-bugs@lists.postgresql.org; Thu, 21 Aug 2025 21:37:09 +0000 Received: from fout-a4-smtp.messagingengine.com ([103.168.172.147]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1upCy2-0019sE-2x for pgsql-bugs@lists.postgresql.org; Thu, 21 Aug 2025 21:37:09 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id DE035EC08F4; Thu, 21 Aug 2025 17:37:04 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Thu, 21 Aug 2025 17:37:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc: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=fm3; t=1755812224; x=1755898624; bh=fBWaAaokMf saANZOrlC/Bf2sNYHEeUttAdmAtezwKYU=; b=DITrW131BuGezQz1iA14dNbf1K vpXylBrr+OoMABcL17nTsW95bXRYdzJjs7JLFDQqMTlXsxB7Yatrl0H0kAG4Hjjf qmJa9H+hkUmIPoOSUecawDM66OLu8zT2ju8jmwsCx1BdZ1nEIt4tn21Z7mjuUDuY S60RJ/5YnG4MAoqajvi0QF+dwuDVDn7DhVxRkbVSbHu8EjVxdMJBFquE58FNJnvu ADmX7NxK5pTbXR905q2a6mAXAiayn4sw/xyx4yaej/KAiqwa9RXU/+98Qiilx14X b7ZYeTVtTztvx+4cEu6bPCHzr59TGZCkSJOdPTXxeDZOH8B4ekvIL3JVJfMA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1755812224; x=1755898624; bh=fBWaAaokMfsaANZOrlC/Bf2sNYHEeUttAdm AtezwKYU=; b=KPcOHJfOwlrhTLeIogGtAAy1HpmwR2b/zWL1liXbcTHM3/fj0l9 x0T17sZXLPkm0ux/ZJXZLXrRn9vN3fjzouU2+4HMF0Q5+jP/wagtEjgQnxLtCGQ6 M+OcQ1ymx6TW+VDHLkgM4c3c3l4Pp1z2CcFmzRySBgqlRSizkDT+LXL1q7FSQL1h qqHwDIvJ1BZM0eN/JGeuhEg9ztq3WRiObuB08fIyoPCDl5xZRq0zrfMKQ92RYBV8 FBI2TGTkAurCsuJ6xKH3ZkTO5alPF+K5fEb4hcdz1A8+UKr+rWtFOysg3v5CKBkb OZSgdDzBIdeZ29hmepru22A0R2uR8652L+A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduiedvvdeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeeg fffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohepledpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghshh huthhoshhhrdgsrghprghtrdhoshhssehgmhgrihhlrdgtohhmpdhrtghpthhtohepvhhi ghhnvghshhdvudesghhmrghilhdrtghomhdprhgtphhtthhopehsrgifrggurgdrmhhshh hksehgmhgrihhlrdgtohhmpdhrtghpthhtoheprhhosggvrhhtmhhhrggrshesghhmrghi lhdrtghomhdprhgtphhtthhopehhohhrihhkhihothgrrdhnthhtsehgmhgrihhlrdgtoh hmpdhrtghpthhtohepfigrnhhgshhhrdhfnhhsthesfhhujhhithhsuhdrtghomhdprhgt phhtthhopehoshhumhhirdhtrghkrghmihgthhhisehfuhhjihhtshhurdgtohhmpdhrtg hpthhtohepphhgshhqlhdqsghughhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhr ghdprhgtphhtthhopegrnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 21 Aug 2025 17:37:01 -0400 (EDT) Date: Fri, 22 Aug 2025 06:36:56 +0900 From: Michael Paquier To: Ashutosh Bapat Cc: vignesh C , Masahiko Sawada , Robert Haas , Kyotaro Horiguchi , wangsh.fnst@fujitsu.com, osumi.takamichi@fujitsu.com, pgsql-bugs@lists.postgresql.org, Andres Freund Subject: Re: "unexpected duplicate for tablespace" problem in logical replication Message-ID: References: <20240116.105804.1924548897701268962.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GwRbYt24DeI3hwUY" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --GwRbYt24DeI3hwUY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 21, 2025 at 07:54:55PM +0530, Ashutosh Bapat wrote: > How about the following: >=20 > --- > Map a relation's (tablespace, relfilenumber) to a relation's oid and > cache the result. >=20 > A temporary relation may have the same relfilenumber as a permanent > relation, or as other temporary relations. In order to uniquely > identify a temporary relation we also need the > proc number of the backend which created it. The proc number is not > available to this function. Hence ignore temporary relations. >=20 > Returns InvalidOid if no permanent relation matching the criteria > could be found. > --- That's simpler. > Said that if you insist on adding just "Temporary relations are not > supported", we can go ahead with it. That would be simpler as well, providing the information. > Vignesh, since you are the original author of the patch, do you want > to take care of addressing the comments? Otherwise I can. It's fine. I am going to take care of that. -- Michael --GwRbYt24DeI3hwUY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAminkXgACgkQnvQgOdby QH0zyBAAhzbRhYrtDfI8V53s8q3q+85MQemxrq8/2RC4tdM1uaVYVT1p3YLjXkZz IbGDa02BojbnIB+DdJBTSo6pYYbZrtF2aCeC5E+xNS/Qkmruve76J5aWTkKuGZ4a Sro1e7lhfdCuGprsaj7w7sQ8+M4PKi0QNa8wv5X7LwKPmPVcqapkujAlycxDjyrY wJMaRbWV0QebnUoMyR7tblYjTOsBB60H9EMfJlY/00rVzhNtT1LdFK98WiDsME2h gGbKWo/sQ1qtqc1oSmJSvcQn2fc0nU9iFpTIVBqpdaRR4BbbwKBoNKQhy3o1psUM fiA3td/8VniHePTP1V851kUbG6DnKcCikkscQYtBrcky2B325BMoAxV0M7p7xzb1 Uu+gL4Ep556NlnFIrVzRDK3Hk+rGf1CCGc7gYnMyz1uWwfy2myEP0o7RG7hHhT+E PBersNL/a/jYlVS3eYOTtdTVjRrleQZiRuCds4GU5AdMj9HBjJhRWEXE5ZNbo4XZ xNOUro5Asem/fgJtaE6mot2ygBIGc65HaVGStTfghnHVjQM8jKVFXJr3bXXtV3yw Vmz96/1A5Fd5HtO8jqJY2ABc2AuxHhzr9+mF2KXnUgFYSbPUzg+2VHWaL7QkgIKC q2kFjlCWh19G/PKyRcUn2MG7Duug6EXAdm5QigYXCYPxA6Y1uJE= =Rqos -----END PGP SIGNATURE----- --GwRbYt24DeI3hwUY--