Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 79BB9B5DBC7 for ; Mon, 17 Oct 2011 12:52:56 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 87914-01 for ; Mon, 17 Oct 2011 15:52:50 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id CD69AB5DBE0 for ; Mon, 17 Oct 2011 12:52:49 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p9HFqmAu014644; Mon, 17 Oct 2011 11:52:48 -0400 (EDT) To: "Laerson Keler" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6258: Lock Sequence In-reply-to: <201110171308.p9HD81vP028182@wwwmaster.postgresql.org> References: <201110171308.p9HD81vP028182@wwwmaster.postgresql.org> Comments: In-reply-to "Laerson Keler" message dated "Mon, 17 Oct 2011 13:08:01 +0000" Date: Mon, 17 Oct 2011 11:52:48 -0400 Message-ID: <14643.1318866768@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201110/144 X-Sequence-Number: 31414 "Laerson Keler" writes: > Dear Srs, good morning, I did the automatic update postgresql 8.4.9 and > a function stopped working, I used the option select for update > in a sequence and is now giving the following error "can not lock rows in > sequence ...", how can I enable the blocking of the sequence? Why did you do that, that is what were you trying to accomplish? It never did block nextval() on the sequence, for example. regards, tom lane