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 1vYArs-00FDSm-1H for pgsql-docs@arkaria.postgresql.org; Tue, 23 Dec 2025 22:28:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vYArr-002UeJ-0l for pgsql-docs@arkaria.postgresql.org; Tue, 23 Dec 2025 22:28:36 +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.96) (envelope-from ) id 1vYArq-002UeB-3A for pgsql-docs@lists.postgresql.org; Tue, 23 Dec 2025 22:28:35 +0000 Received: from mail-yx1-xb135.google.com ([2607:f8b0:4864:20::b135]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vYArp-002Orr-0O for pgsql-docs@lists.postgresql.org; Tue, 23 Dec 2025 22:28:35 +0000 Received: by mail-yx1-xb135.google.com with SMTP id 956f58d0204a3-6455a60c12bso5148402d50.3 for ; Tue, 23 Dec 2025 14:28:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1766528912; x=1767133712; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=w/+k2/c1QZCLSYuHRR7MrLgi1a1TctsXL5M423Rn8mk=; b=ZBIPEyc7ez1Da/r4BG8PC8qAIL+wx0v+JHDSJ8LjCnVDe33MvCF6W9hlhl5iE+ozQ5 6lu49Zi/epya3IjRRHBSZi7LlsB3xOLPTHV++jILTlGSf6i2nvbgstLz+W2SCzLXcZfg EzuE+kqRK4vjVS6Aj/BeNWor1HrGBbGWNi0ciJ5WWP0WxRfdwF44E2NVbcKUb6xUE5ya 4QsQ+YRUbexaj+WCWuEe4bGJ9zL7MdWD5xLNWkN7DysDi40ndCC4XFRJ6zaY4qUodtgK WMCV0MItoK+ocAe2MQKzvD28z6cGMrC6TzKY2bibsvcj90uHGP4IOtrG4YVOQjBxpqjp rOug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766528912; x=1767133712; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=w/+k2/c1QZCLSYuHRR7MrLgi1a1TctsXL5M423Rn8mk=; b=NEG8NY9PG+/7FmE5aKBNP9+9S9/Fnk+YULdSrGCDNAfKL7I2HtFj/iSq2fSTXa4Ipt 8TtZpa+xrN5UeUXSWRil4RwXnIp7zBgXcl/XQgNWOsw9rAzAQTMrpI1Fb8wzHgBoFGgc U9t+X6Z30V+IY0GWUW8KKlWKp33Y/2/v4Ew9/Ndh6Q/tvsZ2gJ74fGp4Pfgn8jNQi6YH nU2n9Nf6st2mcjlMTO2EGXf0m+XAlG1i/F5IrQyZxPAO8YPgMxVBULhpAQbLA7m2cSMx dbc0RhtXUTPk5li2YeVhiai2RCHLNI3eRlkFZMQ32l1/Rxa2I2n9XzT6Pm8jCbKXZldj Q5pA== X-Gm-Message-State: AOJu0Yzu0K0FypB4h/WS8ld9VXCMtswl+mZNXUVNSFpE3cAHeochJEXJ NMUQ+b6F2ouZPtXtHyO/2rDtCp2uw6zt8qnxjAAB87eTqEsxqRcqtGzGZiHY0RJnDlm2EgaUXRy pnm7kaQ8EWOfK0ve/2zIJrxjvi69aDPbJGGcn X-Gm-Gg: AY/fxX7ddCRo8FwYMdT6ttYdUYxSE2GYc00T/8ZWqqsmUN1meHxCeE8uzxyP+b/3HUr rnwCJVUjj+248rqUmGX4oWYoOn5gnzxcFgZcu/LUUdwB/x7PoW8BfSkFoQGLmmlh/Ppzv9jVfi2 vDnJ6kXPHAWThI7olKe0GDAaUzE4vvVPpkgDydVIn+tYSFOxGf437kE2K28W2E2Wj+6Dv3ojckd FXU8+ojoJuFNkmQc64sXRl/r408dEjapMOct4Umzh8mBL8zJu2r2eLwE24WX9MPr6XmS3mDgyin YFg66zdiJLUZb5TH0kf6 X-Google-Smtp-Source: AGHT+IGAr1bZRFShqAZCA8Bprk3WUM3ceJhKEcKTz0J+D15iVe7dxWTwsAiumtSEJUCf1/7/eFgq40jqRoKAfAcaBRE= X-Received: by 2002:a05:690e:1503:b0:644:6aa3:eaf9 with SMTP id 956f58d0204a3-6466a900defmr13383824d50.48.1766528911798; Tue, 23 Dec 2025 14:28:31 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Bernice Southey Date: Tue, 23 Dec 2025 22:27:55 +0000 X-Gm-Features: AQt7F2rl3dOTXesg0b4s-SoPLtJLdqgt8ZVOy1vSaoTe6xIOAO_O0bfG8qiIAzM Message-ID: Subject: Re: More guidance on ctid To: Bruce Momjian Cc: pgsql-docs@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Bruce Momjian wrote: > 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: I meant about all the other stuff (order by and limit etc). At one point the patch had more duplication across update and delete. > 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. Yes. I only queried adding it to both because I remembered the original thread. I agree the visibility of the duplicate warning is better. [From the thread] > > It is similar, but the idea here is to aid in discovery. A user might miss the > > technique for update if it's only documented in delete, and even if they did see > > it there, they might not realize that it works for both UPDATE and DELETE. > > We could make reference links from one to the other, but that seems like extra > > work for the reader. > I don't agree with bloating the documentation with redundant examples just > to save a user a click. I like the idea of a link