pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Hasler <john@dhh.gt.org>
To: PostgreSQL-SQL <pgsql-sql@postgresql.org>
Subject: Re: Invoice number
Date: 21 Dec 2000 11:55:05 -0600
Message-ID: <87puilr75y.fsf@toncho.dhh.gt.org> (raw)
References: <00122111100003.25042@bering>
	<20001221095257.B5037@thune.mrc-home.org>

Mike Castle writes:
> If so, why is no rollbackable an issue?  All you should need is unique
> numbers.  Not necessarily exactly sequential numbers.

Sometimes business rules require that every member of a sequence of such
things as invoice numbers be accounted for.

Speculation:
Would it be possible to log SERIAL's as they are issued?  It might be
sufficient to just record the user id, though it would be more useful to
log some indication of what the number was used for (or at least whether
or not it was used at all).
-- 
John Hasler
john@dhh.gt.org (John Hasler)
Dancing Horse Hill
Elmwood, WI



view thread (12+ messages)  latest in thread

Message-ID: <87puilr75y.fsf@toncho.dhh.gt.org>
Permalink:  ../87puilr75y.fsf@toncho.dhh.gt.org/
Also on:    postgresql.org/message-id/87puilr75y.fsf@toncho.dhh.gt.org

 · 

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: john@dhh.gt.org
  Subject: Re: Invoice number
  In-Reply-To: <87puilr75y.fsf@toncho.dhh.gt.org>
  References: <00122111100003.25042@bering> <20001221095257.B5037@thune.mrc-home.org> <87puilr75y.fsf@toncho.dhh.gt.org>

* 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