Re: [SQL] Can I prevent my sequence to increment if an insert isrejected?

From: Herouth Maoz <herouth(at)oumail(dot)openu(dot)ac(dot)il>
To: Chris Bitmead <chris(at)tech(dot)com(dot)au>
Cc: "pgsql-sql(at)hub(dot)org" <pgsql-sql(at)hub(dot)org>
Subject: Re: [SQL] Can I prevent my sequence to increment if an insert isrejected?
Date: 1999-07-21 09:45:16
Message-ID: l03130302b3bb46f98fd9@[147.233.159.109]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

At 12:36 +0300 on 21/07/1999, Chris Bitmead wrote:

> I missed the original question, but don't you get sequential numbers as
> long as cache is 0?

No. If an insert failed or a transaction failed, the sequence remains in
its new state.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jonathan davis 1999-07-21 09:46:12 pb with pg_group
Previous Message Chris Bitmead 1999-07-21 09:36:59 Re: [SQL] Can I prevent my sequence to increment if an insert isrejected?