Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id AE3CC9FB50C for ; Tue, 22 May 2007 11:01:50 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 97747-07 for ; Tue, 22 May 2007 11:01:44 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id 680389FB383 for ; Tue, 22 May 2007 11:01:44 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HqUvc-0001ex-B0 for pgsql-sql@postgresql.org; Tue, 22 May 2007 16:01:32 +0200 Received: from pirus.securax.be ([213.16.46.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 May 2007 16:01:32 +0200 Received: from milen by pirus.securax.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 May 2007 16:01:32 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-sql@postgresql.org From: "Milen A. Radev" Subject: Re: system table storing sequence attributes Date: Tue, 22 May 2007 17:01:15 +0300 Lines: 21 Message-ID: <4652F7AB.9040502@radev.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org Cc: pgsql-sql@postgresql.org X-Gmane-NNTP-Posting-Host: pirus.securax.be User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) In-Reply-To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/158 X-Sequence-Number: 28438 Sabin Coanda написа: > ""Marcin Stкpnicki"" wrote in message > news:pan.2007.05.22.12.41.38.862364@gmail.com... > ... >> I think that you either misunderstood this statement or try to break your >> application in a nasty way ;). Please tell us more about your problem >> and/or what do you want to achive, because sequences behave this way for a >> reason (concurrency issues). Perhaps there is another solution. > > I have a table with a serial primary key aoto generated by a sequence. I > add/remove records. At a moment I'd like to know what is the current value > of the sequence. I don't wish to know this in the same session where I > add/remove records. Why do you need to know that? I can't think of any reason. [...] -- Milen A. Radev