Re: Invoice number

From: John Hasler <john(at)dhh(dot)gt(dot)org>
To: PostgreSQL-SQL <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Invoice number
Date: 2000-12-21 17:55:05
Message-ID: 87puilr75y.fsf@toncho.dhh.gt.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)dhh(dot)gt(dot)org (John Hasler)
Dancing Horse Hill
Elmwood, WI

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jie Liang 2000-12-21 18:20:50 Re: Create table doesn't work in plpgsql
Previous Message Oliver Elphick 2000-12-21 17:50:43 Re: Invoice number