Re: Rows missing from table despite FK constraint

Поиск
Список
Период
Сортировка
От Konrad Garus
Тема Re: Rows missing from table despite FK constraint
Дата
Msg-id 6645f6441001080924t69ba1aacv9d380ae434f98fa2@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Rows missing from table despite FK constraint  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Rows missing from table despite FK constraint  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
2010/1/8 Tom Lane <tgl@sss.pgh.pa.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

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Rows missing from table despite FK constraint
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Rows missing from table despite FK constraint