Re: Invoice number - Mailing list pgsql-sql

From John Hasler
Subject Re: Invoice number
Date
Msg-id 87puilr75y.fsf@toncho.dhh.gt.org
Whole thread Raw
In response to Invoice number  (Kaare Rasmussen <kar@webline.dk>)
List 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@dhh.gt.org (John Hasler)
Dancing Horse Hill
Elmwood, WI


pgsql-sql by date:

Previous
From: Mike Castle
Date:
Subject: Re: Create table doesn't work in plpgsql
Next
From: "Oliver Elphick"
Date:
Subject: Re: Invoice number