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

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Best way to create unique primary keys across schemas?
Дата
Msg-id CAOR=d=1-vffZurcEj9G8bAJjVMm10FzJFJbDkSYWCnKVq1PfDw@mail.gmail.com
обсуждение исходный текст
Ответ на Best way to create unique primary keys across schemas?  (panam <panam@gmx.net>)
Список pgsql-general
On Sun, Jan 22, 2012 at 5:19 PM, 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?

That's how I do it.  If you use a bigserial / bigint for it, then the
space is usually plenty big for each schema.

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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: PGbouncer for Windows 2008
Следующее
От: Ahmed Shinwari
Дата:
Сообщение: Re: "could not accept SSPI security context"