pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Matthias Apitz <guru@unixarea.de>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: lifetime of the old CTID
Date: Wed, 6 Jul 2022 13:15:09 -0700
Message-ID: <96007955-10da-48b4-129a-a3e8abf4ffb6@aklaver.com> (raw)
In-Reply-To: <YsXn1J/RAi3oVmpQ@c720-r368166>
References: <20220705075119.GA23@sh4-5.1blu.de>
	<03ca00a881de408016a907e31d832175b04aeac7.camel@cybertec.at>
	<20220705102201.GA9@sh4-5.1blu.de>
	<1c03b94b606f493bc6448b8559c4cccf806d3607.camel@cybertec.at>
	<YsReJL8fvHK0D8On@c720-r368166>
	<f363b79595205d42764ad7485aa46ab534f2d318.camel@cybertec.at>
	<YsUfHqpk4Ll1Dej3@c720-r368166>
	<9B418AE6-EA48-4493-B1D1-566708ADC9AC@thebuild.com>
	<YsUpQsTgf2rv1hk+@c720-r368166>
	<bf9dd01c-5d21-dc25-1ca7-9826e2f3e136@gmail.com>
	<YsXn1J/RAi3oVmpQ@c720-r368166>

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





view thread (25+ messages)

Message-ID: <96007955-10da-48b4-129a-a3e8abf4ffb6@aklaver.com>
Permalink:  ../96007955-10da-48b4-129a-a3e8abf4ffb6@aklaver.com/
Also on:    postgresql.org/message-id/96007955-10da-48b4-129a-a3e8abf4ffb6@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, guru@unixarea.de, ronljohnsonjr@gmail.com
  Subject: Re: lifetime of the old CTID
  In-Reply-To: <96007955-10da-48b4-129a-a3e8abf4ffb6@aklaver.com>
  References: <20220705075119.GA23@sh4-5.1blu.de> <03ca00a881de408016a907e31d832175b04aeac7.camel@cybertec.at> <20220705102201.GA9@sh4-5.1blu.de> <1c03b94b606f493bc6448b8559c4cccf806d3607.camel@cybertec.at> <YsReJL8fvHK0D8On@c720-r368166> <f363b79595205d42764ad7485aa46ab534f2d318.camel@cybertec.at> <YsUfHqpk4Ll1Dej3@c720-r368166> <9B418AE6-EA48-4493-B1D1-566708ADC9AC@thebuild.com> <YsUpQsTgf2rv1hk+@c720-r368166> <bf9dd01c-5d21-dc25-1ca7-9826e2f3e136@gmail.com> <YsXn1J/RAi3oVmpQ@c720-r368166> <96007955-10da-48b4-129a-a3e8abf4ffb6@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox