Re: [GENERAL] sequences in transaction blocks

2005-12-19 Thread Marian Naghen
Okay, all clear. Thanx a lot. - Original Message - From: "Tino Wildenhain" <[EMAIL PROTECTED]> To: "Marian Naghen" <[EMAIL PROTECTED]> Cc: Sent: Monday, December 19, 2005 7:50 AM Subject: Re: [GENERAL] sequences in transaction blocks > Am Montag,

Re: [GENERAL] sequences in transaction blocks

2005-12-19 Thread Tino Wildenhain
Am Montag, den 19.12.2005, 09:39 + schrieb Marian Naghen: > I want to insert records inside a transaction block (BEGIN - > COMMIT/ROLLBACK). If the transaction fails, > the sequence do not rollback and retain the new value. > > This is the default behavior of sequences ? Yes it is (its the

Re: [GENERAL] sequences in transaction blocks

2005-12-18 Thread A. Kretschmer
am 19.12.2005, um 9:39:11 - mailte Marian Naghen folgendes: > I want to insert records inside a transaction block (BEGIN - > COMMIT/ROLLBACK). If the transaction fails, > the sequence do not rollback and retain the new value. > > This is the default behavior of sequences ? Yes. HTH, An

[GENERAL] sequences in transaction blocks

2005-12-18 Thread Marian Naghen
I want to insert records inside a transaction block (BEGIN - COMMIT/ROLLBACK). If the transaction fails, the sequence do not rollback and retain the new value.   This is the default behavior of sequences ?     I use the following table:   CREATE TABLE proceduri(  procedura_id int4 NOT NUL

Re: [GENERAL] Sequences in transaction context

2001-06-05 Thread Neil Conway
On Tue, Jun 05, 2001 at 10:33:08PM -0500, Erik Pearson wrote: > One last followup question -- what's MVCC? http://www.postgresql.org/idocs/index.php?mvcc.html Cheers, Neil ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http

Re: [GENERAL] Sequences in transaction context

2001-06-05 Thread Stephan Szabo
On Tue, 5 Jun 2001, Erik Pearson wrote: > I searched through mailing list archives but was unable to find full > coverage of this question -- my apologies if this is a reposted question. > > As in the FAQ, I am trying to retrieve the value of a sequence value from a > newly inserted row. So, fi

Re: [GENERAL] Sequences in transaction context

2001-06-05 Thread Eric G. Miller
On Tue, Jun 05, 2001 at 09:22:43PM -0500, Erik Pearson wrote: > I searched through mailing list archives but was unable to find full > coverage of this question -- my apologies if this is a reposted question. > > As in the FAQ, I am trying to retrieve the value of a sequence value from a > newly

[GENERAL] Sequences in transaction context

2001-06-05 Thread Erik Pearson
I searched through mailing list archives but was unable to find full coverage of this question -- my apologies if this is a reposted question. As in the FAQ, I am trying to retrieve the value of a sequence value from a newly inserted row. So, first I call something like: insert into foobar

Re: [GENERAL] Sequences in transaction

2000-12-04 Thread Mike Castle
On Mon, Dec 04, 2000 at 05:56:04PM -0500, Camm Maguire wrote: > Greetings! I've run into this too, and it appears to me not to roll > back either. A pity, as it forced us to make a separate table to hold > the last sequence value and update the table in a trigger. This is a dangerous thing if y

Re: [GENERAL] Sequences in transaction

2000-12-04 Thread Camm Maguire
Greetings! I've run into this too, and it appears to me not to roll back either. A pity, as it forced us to make a separate table to hold the last sequence value and update the table in a trigger. Take care, igor <[EMAIL PROTECTED]> writes: > Hi, > > Help me please to understand such a thing