From: | "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: On Rollback my sequency does not back the initial value |
Date: | 2006-10-05 19:16:21 |
Message-ID: | 20061005191621.GA23352@a-kretschmer.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
am Thu, dem 05.10.2006, um 15:50:58 -0300 mailte Ezequias Rodrigues da Rocha folgendes:
> Hi,
>
> I am implementing a function that execute a rollback then some exception is
> throwed.
>
> The problem is that my nextval('mysequency') does not return to the initial
> value when the rollback is executed.
Right, a sequence doesn't rollback.
-- cite:
Advance the sequence object to its next value and return that value.
This is done atomically: even if multiple sessions execute nextval
concurrently, each will safely receive a distinct sequence value.
--
Source:
http://www.postgresql.org/docs/8.1/interactive/functions-sequence.html
HTH, Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47215, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-10-05 19:20:59 | Re: Postgresql quey planner |
Previous Message | William Leite Araújo | 2006-10-05 19:02:37 | Postgresql quey planner |