| От | Rob Brown-Bayliss |
|---|---|
| Тема | Re: oid's and primary keys on insert |
| Дата | |
| Msg-id | 1028924732.1856.36.camel@everglade.zoism.org обсуждение |
| Ответ на | oid's and primary keys on insert (Rob Brown-Bayliss <rob@zoism.org>) |
| Ответы |
Re: oid's and primary keys on insert
|
| Список | pgsql-general |
On Sat, 2002-08-10 at 08:13, Elaine Lindelef wrote: > Add another column of type SERIAL and use it to store a plain > incremented integer, and use it like you used to use OIDs. Except that this brings me back to the reason for not useing a sequence as a primary key: What happens when site2 has already placed a row with value 1234 in this column and site1's sequence is up to 1233, I insert the row, and now I have two rows with 1234 as the ID row... At least OID's will be unique as when inserting rows from another site they still use the OID from the local machine. -- * * Rob Brown-Bayliss *
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера