Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: OID Perfomance - Object-Relational databases - Mailing list pgsql-sql

From Tom Lane
Subject Re: OID Perfomance - Object-Relational databases
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: OID Perfomance - Object-Relational databases  (Michael Fork <[email protected]>)
List pgsql-sql
Michael Fork <[email protected]> writes:
> Just a thought, but couldn't you create a sequence that is referenced by
> multiple tables,

I was going to suggest exactly that.  It's not quite as simple as a
"serial" column declaration, but you can split the use of an ID sequence
generator over just as many tables as you need to have unique IDs
across.  That way you don't have a problem at dump/reload time,
and you don't exhaust your ID space any faster than you must.
        regards, tom lane


pgsql-sql by date:

Previous
From: Michael Fork
Date:
Subject: Re: OID Perfomance - Object-Relational databases
Next
From: Tom Lane
Date:
Subject: Re: OID Perfomance - Object-Relational databases