Thus spake Oliver Elphick
> >If so, why is no rollbackable an issue? All you should need is unique
> >numbers. Not necessarily exactly sequential numbers.
>
> For invoice numbers, it matters.
>
> Numbers missing from such a sequence are likely to provoke questions from
> auditors and taxme
> I'm wondering how people creates guaranteed sequential numbers - in my case
> for invoice numbers.
>
> - Sequences are not rollback'able.
> - It seems overkill to have a table just for this.
> - What else?
You'll probably need a table (although you may be able to get away with
only one for a
Mike Castle wrote:
> What do you do on the following scenario:
>
> Client 1 is placing an order, gets invoice #1.
> Client 2 is simultaneously placing an order, and gets invoice #2.
>
> Client 1 changes mind and cancels order. Invoice #1 is not used. Invoice
> #2 is.
>
> Client 3 comes along.
Mike Castle writes:
> Client 3 comes along. Do they use invoice #1, out of order, or invoice
> #3?
It shouldn't matter, as long as every number is accounted for.
Seems to me that a trigger could make a log entry every time the serial is
incremented. Workable?
> What happens in a paper world i
> What do you do on the following scenario:
I don't enter !
> Client 1 is placing an order, gets invoice #1.
Wrong! He gets an order number
> Client 1 changes mind and cancels order. Invoice #1 is not used. Invoice
> #2 is.
> Client 3 comes along. Do they use invoice #1, out of order, or in
On Thu, Dec 21, 2000 at 05:50:43PM +, Oliver Elphick wrote:
> Mike Castle wrote:
> >On Thu, Dec 21, 2000 at 11:10:00AM +0100, Kaare Rasmussen wrote:
> >> - Sequences are not rollback'able.
> >
> >Did you mean SERIAL instead of sequence here?
> >
> >If so, why is no rollbackable an
Mike Castle wrote:
>On Thu, Dec 21, 2000 at 11:10:00AM +0100, Kaare Rasmussen wrote:
>> - Sequences are not rollback'able.
>
>Did you mean SERIAL instead of sequence here?
>
>If so, why is no rollbackable an issue? All you should need is unique
>numbers. Not necessarily exactly seq
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 possi
Kaare,
> How many times have I tried this
> mailing list with no
> success :-(
Hey! It's a peer-to-peer mailing list. You want guarenteed
answers, pay for support (I do)
> I'm wondering how people creates guaranteed sequential
> numbers - in my case
> for invoice numbers.
>
> - Sequences
On Thu, Dec 21, 2000 at 11:10:00AM +0100, Kaare Rasmussen wrote:
> - Sequences are not rollback'able.
Did you mean SERIAL instead of sequence here?
If so, why is no rollbackable an issue? All you should need is unique
numbers. Not necessarily exactly sequential numbers.
mrc
--
Mike Ca
Hi,
> I'm wondering how people creates guaranteed sequential numbers - in my case
> for invoice numbers.
See the PostgreSQL book p. 85 and 250, and the online doc about serials:
CREATE TABLE person ( id SERIAL, name TEXT );
Volker Paul
Hi
My, my. It works. How many times have I tried this mailing list with no
success :-(
I'm wondering how people creates guaranteed sequential numbers - in my case
for invoice numbers.
- Sequences are not rollback'able.
- It seems overkill to have a table just for this.
- What else?
tia
12 matches
Mail list logo