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.96) (envelope-from ) id 1vY9zY-00EvZa-0E for pgsql-docs@arkaria.postgresql.org; Tue, 23 Dec 2025 21:32:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vY9zU-002JhF-30 for pgsql-docs@arkaria.postgresql.org; Tue, 23 Dec 2025 21:32:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vY9zU-002Jh7-1z for pgsql-docs@lists.postgresql.org; Tue, 23 Dec 2025 21:32:25 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vY9zT-002FQl-0d for pgsql-docs@lists.postgresql.org; Tue, 23 Dec 2025 21:32:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2025010100; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=W4mcMg2NVZdj+Hcav1Y+7ZyZDxZjSmwoy4ekc2vjXEY=; b=bNtZQ eXOiNHO67RIpiMGQgcTIP570JUMT2PBbikLnQvkeq373Jb3aVetrDgiynMXREyKAIjwrxFn3r7tcw mWtpENjH+HPP1u3vEJN9vZFFNCFsuwWmoLOmPMNEpjhkg7DTImmsguoHyBH6KIclMqq5Xwkvltkxi DvEMWAtds4Xh6ehOEBmEBT9YlwH8RYYSZ3XFBJWQc386ZhNkR47y4STzHCdGPVkCkSRimUrsmnL1W I5aOkXGd2jxWVrrX0CMeKhCCM4LKoj9kUE+WhJ4QejsijXKq/Gl5YfgjcancxLU6MB4DZJPv4K5YT Kd/igSvejBFJv8+qU4sVJNmES3DAA==; Received: from bruce by momjian.us with local (Exim 4.98.2) (envelope-from ) id 1vY9zR-00000002O7Q-1oJR; Tue, 23 Dec 2025 16:32:21 -0500 Date: Tue, 23 Dec 2025 16:32:21 -0500 From: Bruce Momjian To: Bernice Southey Cc: pgsql-docs@lists.postgresql.org Subject: Re: More guidance on ctid Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Dec 23, 2025 at 11:49:37AM +0000, Bernice Southey wrote: > Bruce Momjian wrote: > > What I did do was to explain why ctid was safe in this > > use-case. I also strengthened the documentation that ctid is not valid > > for row references. > I like this, explaining the risk is much better. I couldn't think of a > simple way to do it. Great. > There was a strong preference for not duplicating the explanatory text > when the examples were added. Perhaps delete doesn't need the new > line? Uh, where did you see that? I found the original thread and I don't see any mention of a warning, or not wanting a warning: https://www.postgresql.org/message-id/flat/CADkLM%3DcaNEQsUwPWnfi2jR4ix99E0EJM_3jtcE-YjnEQC7Rssw%40mail.gmail.com I feel we need a warning specifically because people will find this query, particularly in the very visible UPDATE/DELETE man pages, and not realize ctid only has a few save use-cases. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.