Re: Best way to create unique primary keys across schemas? - Mailing list pgsql-general

From Scott Marlowe
Subject Re: Best way to create unique primary keys across schemas?
Date
Msg-id CAOR=d=1-vffZurcEj9G8bAJjVMm10FzJFJbDkSYWCnKVq1PfDw@mail.gmail.com
Whole thread Raw
In response to Best way to create unique primary keys across schemas?  (panam <panam@gmx.net>)
List 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 by date:

Previous
From: John R Pierce
Date:
Subject: Re: PGbouncer for Windows 2008
Next
From: Ahmed Shinwari
Date:
Subject: Re: "could not accept SSPI security context"