Re: Sequences and inheritance

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Sequences and inheritance
Дата
Msg-id 10757.996591208@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Sequences and inheritance  (Bruce Richardson <brichardson@lineone.net>)
Список pgsql-general
Bruce Richardson <brichardson@lineone.net> writes:
> If I have a set of tables and I set their primary keys all to the same
> sequence, as in
> ...
> Would this guarantee that each value of ID in any row of any of the
> tables would be unique amongst all of them?

As long as the sequence doesn't wrap around, yes.

IIRC, you can set up a sequence to error out rather than wrap when
it hits the max...

            regards, tom lane

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

Предыдущее
От: Joel Burton
Дата:
Сообщение: Re: ODBC read/write permission in MS Access
Следующее
От: wsheldah@lexmark.com
Дата:
Сообщение: Re: ODBC read/write permission in MS Access