Re: libpq: usage of PQoidValue to obtain serial primary key after insert

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: libpq: usage of PQoidValue to obtain serial primary key after insert
Дата
Msg-id 200407221444.56693.peter_e@gmx.net
обсуждение исходный текст
Ответ на libpq: usage of PQoidValue to obtain serial primary key after insert  (Michal Dobaczewski <mdobaczewski@cc.com.pl>)
Ответы Re: libpq: usage of PQoidValue to obtain serial primary  (Michal Dobaczewski <mdobaczewski@cc.com.pl>)
Список pgsql-interfaces
Am Donnerstag, 22. Juli 2004 13:14 schrieb Michal Dobaczewski:
> Browsing the general list I've just read a post claiming that oid are
> not guaranteed to be unique in the table. This is also stated in the
> documentation - which seems to have escaped me this far. So I assume the
> approach presented above is flawed.
>
> I would like to ask what is a most elegant way to deal with such issues?

Create a unique constraint on the oid column.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


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

Предыдущее
От: Michal Dobaczewski
Дата:
Сообщение: libpq: usage of PQoidValue to obtain serial primary key after insert
Следующее
От: Michal Dobaczewski
Дата:
Сообщение: Re: libpq: usage of PQoidValue to obtain serial primary