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 1o9BQd-0002jz-8O for pgsql-general@arkaria.postgresql.org; Wed, 06 Jul 2022 20:15:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o9BQc-0007nK-1f for pgsql-general@arkaria.postgresql.org; Wed, 06 Jul 2022 20:15:18 +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 1o9BQa-0007mh-9f for pgsql-general@lists.postgresql.org; Wed, 06 Jul 2022 20:15:17 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o9BQX-0005iM-F9 for pgsql-general@lists.postgresql.org; Wed, 06 Jul 2022 20:15:15 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 138EE5C013E; Wed, 6 Jul 2022 16:15:11 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 06 Jul 2022 16:15:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1657138511; x= 1657224911; bh=PlD83+AVDCmDqSRGyHE860vSHA7Rr5ptUlyaF3h8obQ=; b=W rpfCELd6K/FFGTk0cV6/2qiRCdVyLn8wqX0LGouchvUzWL3me8qKu9M0CXgnVDwU JOPBVUO9W82NASFyK3LS2UtcErHbJTKSYbGIFJyuj47ZjTnLFuYgycATBUkyGVZP ikpSE90Ommfin5la4B7lJvu9PXPRUF15aK7+03LkUZQityBK/ZDaMOFXZ3PRwLbj X5r3zUvRiYTqMmbUVGtHjatamkWC+g+aoqtyApkPATZDO6Q0UPXse1QDoDcOdJ1e yacT5l0L0iuR31dk/Ttf5OMqCD0U50r7TrHEwbTmLxcAom5D0HsZeQ0jTV1jrvZ9 r4QTEt5RSBnuXnIgWyoxQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1657138511; x= 1657224911; bh=PlD83+AVDCmDqSRGyHE860vSHA7Rr5ptUlyaF3h8obQ=; b=c 83eshRSL9UJwEzVJFhMCh8EafgeNFEtuRTL36T2QoxI7d/dOSYNjPHMU1QxLnLM/ K+SEr4TSTPRdCG3arhyz9U73iH9EqsVReE8PwkB+/s+DM95so72e44/s6ptBxx+s B7VW61BbtugFdvEZl1BZFcFTihK9Xm6zt/T8ibJ/A8XSJgRCrewTGQvo9O0v1+2z AV1XR9MFdN6hP7j5gFoYfkR26g6PYfURX68Cf6KtvIuT7iZSO+gI5BymLpwafeQv RZRD+CJaL/UlI02uPDnHCHHhT3EqCM/uR0h9HBzGXTa63UaF8N0xyCO8XZQ9YJ+q EeMAcwnxmnCPjXk+FOK8A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeifedgudegiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvvehfhfgjtgfgse htkeertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghn rdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhephedugf ethfettdehieevteeukedtjedvhfevkefgudefgeevteduvdeuvdeggeegnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklh grvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 6 Jul 2022 16:15:10 -0400 (EDT) Message-ID: <96007955-10da-48b4-129a-a3e8abf4ffb6@aklaver.com> Date: Wed, 6 Jul 2022 13:15:09 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: lifetime of the old CTID Content-Language: en-US To: Matthias Apitz , Ron Cc: pgsql-general@lists.postgresql.org References: <20220705075119.GA23@sh4-5.1blu.de> <03ca00a881de408016a907e31d832175b04aeac7.camel@cybertec.at> <20220705102201.GA9@sh4-5.1blu.de> <1c03b94b606f493bc6448b8559c4cccf806d3607.camel@cybertec.at> <9B418AE6-EA48-4493-B1D1-566708ADC9AC@thebuild.com> From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/6/22 12:51, Matthias Apitz wrote: > El día miércoles, julio 06, 2022 a las 02:33:42p. m. -0500, Ron escribió: > >> On 7/6/22 01:18, Matthias Apitz wrote: >> [snip] >>> Ofc, each table has its own primary key(s), used for example for the >>> SELECT ctid, * FROM d01buch WHERE ... >>> >>> As I said, we came to PostgreSQL from Sybase (and Oracle) and Sybase has >>> for each table a so called SYB_IDENTITY_COLUMN which is static for the >>> table and its value does not change. >> >> The DBA who designed that should be flogged for pretending that >> SYB_IDENTITY_COLUMN is a primary key. > > Now things are coing to blaming. Nobody said that SYB_IDENTITY_COLUMN > is a primary key, but it is uniqu to identify a row in a table once > known. Which is the definition of a PRIMARY KEY. At any rate as has been noted repeatedly ctid is not that. > > matthias -- Adrian Klaver adrian.klaver@aklaver.com