From: | Haroldo Stenger <hstenger(at)adinet(dot)com(dot)uy> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Sequences do not obey transactions... |
Date: | 2000-06-21 05:22:46 |
Message-ID: | 39505126.35E6FFBB@adinet.com.uy |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-sql |
Haroldo Stenger wrote:
> And I add one of my own: It is not really necessary to have continuity in nearly
> all apps. Your question is valid anyhow, but ask yourself: How does Oracle
> resolve this? How would I program it myself by hand? And there you'll understand
> the issue deeply.
How funny it is to quote myself :9 I'd like to add this: When one has to number
paper forms (invoices for instance), one must be careful about holes in
sequences. What I do, is to have two sequences. One for the user, and one for
the system. When the user has confirmed all her data, I'll COPY to another table
the data, which NOW doesn't have a chance to cancel. Well, not so sure, but 99%
of aborts, are user aborts. So this may help.
Note to Bruce (or current FAQ mantainer): Please, add both the answer to the
very question, and this addition of my own to the FAQ. I would have loved to
find it somewhere, when I didn't know what to do.
Regards,
Haroldo.
--
> ----------------------+------------------------
> Haroldo Stenger | hstenger(at)ieee(dot)org
> Montevideo, Uruguay. | hstenger(at)adinet(dot)com(dot)uy
> ----------------------+------------------------
> Visit UYLUG Web Site: http://www.linux.org.uy
> -----------------------------------------------
--
----------------------+------------------------
Haroldo Stenger | hstenger(at)ieee(dot)org
Montevideo, Uruguay. | hstenger(at)adinet(dot)com(dot)uy
----------------------+------------------------
Visit UYLUG Web Site: http://www.linux.org.uy
-----------------------------------------------
From | Date | Subject | |
---|---|---|---|
Next Message | Denis Perchine | 2000-06-21 06:43:30 | libpq error codes |
Previous Message | Haroldo Stenger | 2000-06-21 05:08:35 | Re: Sequences do not obey transactions... |
From | Date | Subject | |
---|---|---|---|
Next Message | Ed | 2000-06-21 14:49:38 | Simply append... |
Previous Message | Haroldo Stenger | 2000-06-21 05:08:35 | Re: Sequences do not obey transactions... |