Re: Best way to create unique primary keys across schemas?

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: Best way to create unique primary keys across schemas?
Дата
Msg-id jfm28v$5i1$1@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на Best way to create unique primary keys across schemas?  (panam <panam@gmx.net>)
Список pgsql-general
On 2012-01-23, panam <panam@gmx.net> wrote:
> Hi,
>
> If I'd like to have primary keys generated ("numeric" style, no UUIDs) that
> are unique across schemas is the best option to allocate a fixed sequence
> range (min,max) to the sequences of all schemas?

given that challenge the easiest solution is to just create one
sequence and hang everything off it.

--
⚂⚃ 100% natural

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

Предыдущее
От: Allan Kamau
Дата:
Сообщение: Re: PG migration policy
Следующее
От: Jasen Betts
Дата:
Сообщение: Re: How to make a non-removable row in a table?