Re: serial type (text instead of integer) and duplicate keys

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Carlos Costa <ccosta(at)gmail(dot)com>
Cc: psql mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: serial type (text instead of integer) and duplicate keys
Date: 2005-04-12 14:17:47
Message-ID: 15491.1113315467@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Carlos Costa <ccosta(at)gmail(dot)com> writes:
> SELECT oid,xmin,xmax,ctid,id FROM articles WHERE id=391;
> oid | xmin | xmax | ctid | id
> ---------+-----------+-----------+----------+-----
> 3032469 | 152691945 | 152886684 | (104,6) | 391
> 3032469 | 152886687 | 156995994 | (104,13) | 391
> (2 rows)

Could we see cmin,cmax as well?

Since the OID is the same, these are evidently two versions of the same
row; somehow one of them didn't get marked dead when the other one was
created. What patterns of updating do you use on this table? Any
SELECT FOR UPDATE?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Eckermann 2005-04-12 14:32:05 Re: Crystal reports 9 fails to recognise data on upgrade to 8.0.1
Previous Message Tom Lane 2005-04-12 13:51:55 Re: Question about Large Objects