From: A. Kretschmer <andreas.kretschmer@schollglas.com>
To: pgsql-sql@postgresql.org
Subject: Re: On Rollback my sequency does not back the initial value
Date: Thu, 5 Oct 2006 21:16:21 +0200
Message-ID: <20061005191621.GA23352@a-kretschmer.de> (raw)
In-Reply-To: <55c095e90610051150x128edd9andf999a8ad873b28f@mail.gmail.com>
References: <55c095e90610051150x128edd9andf999a8ad873b28f@mail.gmail.com>
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
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: andreas.kretschmer@schollglas.com
Subject: Re: On Rollback my sequency does not back the initial value
In-Reply-To: <20061005191621.GA23352@a-kretschmer.de>
* 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