Re: duplicated oid

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: duplicated oid
Дата
Msg-id
17886.999822924@sss.pgh.pa.us
Ответ на
Re: duplicated oid (Carolyn Lu Wong)
Список
Дерево обсуждения
Re: duplicated oid Carolyn Lu Wong <carolyn@greatpacific.com.au>
Re: duplicated oid Tom Lane <tgl@sss.pgh.pa.us>
Re: duplicated oid Stephan Szabo <sszabo@megazone23.bigpanda.com>
Carolyn Lu Wong  writes:
> anyone knows if duplicated oid is possible?? 

Yes, if you don't have a unique index on it and you've generated more
than four billion rows in the database.

> is there a possible way to remove the duplicate row, now that i don't
> know which ID to use? any suggestions?

Use ctid to distinguish the rows.  Note ctid will change if you update
a row, so it's not a permanent identifier either, but it will serve for
deleting a row.
		regards, tom lane

В списке pgsql-sql по дате отправления
От: Stephan Szabo
Дата:
Сообщение: Re: duplicated oid
От: Haller Christoph
Дата:
Сообщение: Re:
FAQ