Re: duplicated oid

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: duplicated oid
Дата
Msg-id 17886.999822924@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: duplicated oid  (Carolyn Lu Wong <carolyn@greatpacific.com.au>)
Список pgsql-sql
Carolyn Lu Wong <carolyn@greatpacific.com.au> 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: