Re: [GENERAL] 6.5.1 possibly lost rows - Mailing list pgsql-general

From James Thompson
Subject Re: [GENERAL] 6.5.1 possibly lost rows
Date
Msg-id Pine.LNX.4.10.9907291546290.3417-100000@hobbes.math.ksu.edu
Whole thread Raw
In response to 6.5.1 possibly lost rows  (Brian Curnow <bcurnow@sonnet.com>)
List pgsql-general
On Thu, 29 Jul 1999, Brian Curnow wrote:
>
> 1)  An INSERT statement that fails before completion can still use up a
> sequence #

I'm thinking this is what happened.  It seems to me postgresql would need
to read the sequence value generator before it could perform the insert.
Once a sequence generator is read it immediately increments. There is no
way to roll that back due to the fact that other processes could have read
the sequence generator after your process did and incremented it even
further.

->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<
James Thompson    138 Cardwell Hall  Manhattan, Ks   66506    785-532-0561
Kansas State University                          Department of Mathematics
->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<




pgsql-general by date:

Previous
From: Brian Curnow
Date:
Subject: 6.5.1 possibly lost rows
Next
From: David HM Spector
Date:
Subject: PG95 module for Apache1.3.x..?