pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Fork <mfork@toledolink.com>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: sqllist <pgsql-sql@postgresql.org>
Subject: Re: OID Perfomance - Object-Relational databases
Date: Tue, 03 Oct 2000 23:36:57 -0400
Message-ID: <2434.970630617@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.BSI.4.21.0010032121560.22459-100000@glass.toledolink.com>
References: <Pine.BSI.4.21.0010032121560.22459-100000@glass.toledolink.com>

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



view thread (21+ messages)  latest in thread

Message-ID: <2434.970630617@sss.pgh.pa.us>
Permalink:  ../2434.970630617@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2434.970630617@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mfork@toledolink.com, josh@agliodbs.com
  Subject: Re: OID Perfomance - Object-Relational databases
  In-Reply-To: <2434.970630617@sss.pgh.pa.us>
  References: <Pine.BSI.4.21.0010032121560.22459-100000@glass.toledolink.com> <2434.970630617@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox