Re: [GENERAL] Postgres concurrency : urgent - Mailing list pgsql-general

From Chairudin Sentosa Harjo
Subject Re: [GENERAL] Postgres concurrency : urgent
Date
Msg-id 382BE424.9F658F72@prima.net.id
Whole thread Raw
In response to Re: [GENERAL] Postgres concurrency : urgent  (Marcin Inkielman <marn@wsisiz.edu.pl>)
Responses Re: [GENERAL] Postgres concurrency : urgent  (Marcin Inkielman <marn@wsisiz.edu.pl>)
List pgsql-general
Marcin Inkielman wrote:
>
> On Fri, 12 Nov 1999, Vadim Mikheev wrote:
>
> > > LOCK <<tablename>> IN ACCESS EXCLUSIVE MODE;
> >                         ^^^^^^
> > This blocks concurrent read access - is it what you really want?
> >
> I know it is rather restrictive but when applied to a sequence it inhibits
> to a unterminated transaction to change sequence current value (with
> for example SELECT nextval('seq')) - ROLLBACK doesn't revert
> previous sequence curr. value.

How do I lock a sequence?
I must be able to rollback to previous sequence curr.value, if the
transaction fails to work.
I have been looking this for ages, it seems I haven't found the answer
yet.

Regards,
Chai

pgsql-general by date:

Previous
From: Marcin Inkielman
Date:
Subject: Re: [GENERAL] Postgres concurrency : urgent
Next
From: Andrzej Mazurkiewicz
Date:
Subject: RE: [GENERAL] Types available