pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Haroldo Stenger <hstenger@adinet.com.uy>
To: pgsql-general@postgresql.org
Subject: Re: Sequences do not obey transactions...
Date: Wed, 21 Jun 2000 02:22:46 -0300
Message-ID: <39505126.35E6FFBB@adinet.com.uy> (raw)
References: <Pine.LNX.4.10.10006202027300.10276-100000@excelsior.rkirkpat.net>
	<39504DD3.6744F245@adinet.com.uy>

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@ieee.org
>  Montevideo, Uruguay. | hstenger@adinet.com.uy
> ----------------------+------------------------
>  Visit UYLUG Web Site: http://www.linux.org.uy
> -----------------------------------------------

-- 
----------------------+------------------------
 Haroldo Stenger      | hstenger@ieee.org
 Montevideo, Uruguay. | hstenger@adinet.com.uy
----------------------+------------------------
 Visit UYLUG Web Site: http://www.linux.org.uy
-----------------------------------------------



view thread (5+ messages)  latest in thread

Message-ID: <39505126.35E6FFBB@adinet.com.uy>
Permalink:  ../39505126.35E6FFBB@adinet.com.uy/
Also on:    postgresql.org/message-id/39505126.35E6FFBB@adinet.com.uy

 · 

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: hstenger@adinet.com.uy, pgsql-general@postgresql.org
  Subject: Re: Sequences do not obey transactions...
  In-Reply-To: <39505126.35E6FFBB@adinet.com.uy>
  References: <Pine.LNX.4.10.10006202027300.10276-100000@excelsior.rkirkpat.net> <39504DD3.6744F245@adinet.com.uy> <39505126.35E6FFBB@adinet.com.uy>

* 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