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

From Tom Lane
Subject Re: OID Perfomance - Object-Relational databases
Date
Msg-id 2434.970630617@sss.pgh.pa.us
Whole thread Raw
In response to Re: OID Perfomance - Object-Relational databases  (Michael Fork <mfork@toledolink.com>)
List pgsql-sql
Michael Fork <mfork@toledolink.com> 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