Understanding oid for a record

Поиск
Список
Период
Сортировка
От Brusser, Michael
Тема Understanding oid for a record
Дата
Msg-id DAF7A2046DD4A24F8F77B086F840BF190CAE39E0@msx11am.matrixone.net
обсуждение исходный текст
Ответы Re: Understanding oid for a record  (Richard Huxton <dev@archonet.com>)
Re: Understanding oid for a record  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I ran into a situation with the query that needs to fetch the last record from the table.
The table schema wasn't really designed to support this, (no serial id, or anything else I could use)
so SQL makes use of max(create_date) which has a resolution of 1 second and thus allows for duplicate values.
 
I was thinking about using max(oid), but I don't know if there's any rotation or recycling possible there...
Can I assume that oid for any new record will be larger than oid on any other existing rows?
 
Thanks,
Michael.
 

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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: pg_restore fails with a custom backup file
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_restore fails with a custom backup file