Re: OID Perfomance - Object-Relational databases

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Fork <mfork(at)toledolink(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, sqllist <pgsql-sql(at)postgresql(dot)org>
Subject: Re: OID Perfomance - Object-Relational databases
Date: 2000-10-04 03:36:57
Message-ID: 2434.970630617@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Michael Fork <mfork(at)toledolink(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2000-10-04 03:43:51 Re: OID Perfomance - Object-Relational databases
Previous Message Michael Fork 2000-10-04 01:26:29 Re: OID Perfomance - Object-Relational databases