X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 3BC10D1BA97 for ; Fri, 29 Aug 2003 20:22:33 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 58331-04 for ; Fri, 29 Aug 2003 17:22:24 -0300 (ADT) Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by svr1.postgresql.org (Postfix) with ESMTP id 317A2D1BA3B for ; Fri, 29 Aug 2003 17:22:01 -0300 (ADT) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.12.3/8.12.3/Debian-6.4) with SMTP id h7TKLr0Q019701; Fri, 29 Aug 2003 15:21:55 -0500 Reply-To: From: "Nick Fankhauser" To: "Pierre Couderc" , Subject: Re: How to read a sequence without incrementing it? Date: Fri, 29 Aug 2003 15:20:52 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: Importance: Normal X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/356 X-Sequence-Number: 10076 Use currval() See: http://www.postgresql.org/docs/7.3/static/functions-sequence.html -Nick > -----Original Message----- > From: pgsql-admin-owner@postgresql.org > [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Pierre Couderc > Sent: Friday, August 29, 2003 11:27 AM > To: pgsql-admin@postgresql.org > Subject: [ADMIN] How to read a sequence without incrementing it? > > > I would like to read the current value of a sequence, or a value > not too far of > the current value (for example, the value it was a few seconds or > minutes ago). > Is it possible (without any nexrval that should increment it)? > > Thank you all > > Pierre Couderc > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster >