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

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Best way to create unique primary keys across schemas?
Date: 2012-01-24 10:47:59
Message-ID: jfm28v$5i1$1@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2012-01-23, panam <panam(at)gmx(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message panam 2012-01-24 11:23:01 Re: Best way to create unique primary keys across schemas?
Previous Message Alban Hertroys 2012-01-24 09:42:15 Re: [RFE] auto ORDER BY for SELECT