Re: Rows missing from table despite FK constraint

From: Konrad Garus <konrad(dot)garus(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Alban Hertroys <dalroi(at)solfertje(dot)student(dot)utwente(dot)nl>, pgsql-general(at)postgresql(dot)org
Subject: Re: Rows missing from table despite FK constraint
Date: 2010-01-08 17:24:51
Message-ID: 6645f6441001080924t69ba1aacv9d380ae434f98fa2@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2010/1/8 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:

> Just to confirm, if you try to select any of these rows by ctid, ie
>        select * from tablename where ctid = '(603713,1)';
> you get nothing?  What *should* happen is that you get the row if you
> mention offset 1, 3, or 5, but nothing if you say 2 or 4.

How about this?

# select attachment_id from attachment where ctid = '(603713,1)';
attachment_id
---------------
15460683
(1 row)

# select attachment_id from attachment where attachment_id = 15460683;
attachment_id
---------------
(0 rows)

--
Konrad Garus

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-01-08 17:28:36 Re: Rows missing from table despite FK constraint
Previous Message Tom Lane 2010-01-08 17:16:59 Re: Rows missing from table despite FK constraint