pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: James Olin Oden <joden@lee.k12.nc.us>
To: pgsql-sql@postgreSQL.org
Subject: Sequences...
Date: Mon, 27 Jul 1998 16:34:57 -0400
Message-ID: <81Jul26.152515edt.35713@gateway.lee.k12.nc.us> (raw)


I had a asked this question earlier and did not get a response, so here
it is again.

When implementing an "autoincrementing" field in several tables, is
common practice to create sequence for each table, or is it OK to use
just one sequence?  I know right off the bat that if there was a
requirement that there be no holes in the key for a particualr table
that one sequence over multiple tables (like in check register) would
not do, but if this requirment is not there, would having one sequnence
for all (provided your projected number of total records in all the
tables is less than 4 billion)  tables be OK?

Thanks...james




view thread (19+ messages)  latest in thread

Message-ID: <81Jul26.152515edt.35713@gateway.lee.k12.nc.us>
Permalink:  ../81Jul26.152515edt.35713@gateway.lee.k12.nc.us/
Also on:    postgresql.org/message-id/81Jul26.152515edt.35713@gateway.lee.k12.nc.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: joden@lee.k12.nc.us
  Subject: Re: Sequences...
  In-Reply-To: <81Jul26.152515edt.35713@gateway.lee.k12.nc.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