Re: OID Perfomance - Object-Relational databases

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: OID Perfomance - Object-Relational databases
Дата
Msg-id 2434.970630617@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: OID Perfomance - Object-Relational databases  (Michael Fork <mfork@toledolink.com>)
Список pgsql-sql
Michael Fork <mfork@toledolink.com> writes:
> Just a thought, but couldn't you create a sequence that is referenced by
> multiple tables,

I was going to suggest exactly that.  It's not quite as simple as a
"serial" column declaration, but you can split the use of an ID sequence
generator over just as many tables as you need to have unique IDs
across.  That way you don't have a problem at dump/reload time,
and you don't exhaust your ID space any faster than you must.
        regards, tom lane


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

Предыдущее
От: Michael Fork
Дата:
Сообщение: Re: OID Perfomance - Object-Relational databases
Следующее
От: Tom Lane
Дата:
Сообщение: Re: OID Perfomance - Object-Relational databases