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 D2121D1B8A9 for ; Fri, 29 Aug 2003 21:09:23 +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 61756-02 for ; Fri, 29 Aug 2003 18:08:53 -0300 (ADT) Received: from hotmail.com (bay2-f30.bay2.hotmail.com [65.54.247.30]) by svr1.postgresql.org (Postfix) with ESMTP id 5A55FD1B8BB for ; Fri, 29 Aug 2003 18:08:51 -0300 (ADT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 29 Aug 2003 14:08:53 -0700 Received: from 65.207.145.30 by by2fd.bay2.hotmail.msn.com with HTTP; Fri, 29 Aug 2003 21:08:52 GMT X-Originating-IP: [65.207.145.30] X-Originating-Email: [sreepriya@hotmail.com] From: "Priya G" To: pierre@couderc.cc, pgsql-admin@postgresql.org Subject: Re: How to read a sequence without incrementing it? Date: Fri, 29 Aug 2003 17:08:52 -0400 Mime-Version: 1.0 Content-Type: text/html Message-ID: X-OriginalArrivalTime: 29 Aug 2003 21:08:53.0032 (UTC) FILETIME=[C0220280:01C36E71] X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/357 X-Sequence-Number: 10077

select last_value from 'seq';

>From: Pierre Couderc
>To: pgsql-admin@postgresql.org
>Subject: [ADMIN] How to read a sequence without incrementing it?
>Date: Fri, 29 Aug 2003 18:27:09 +0200
>
>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


Get MSN 8 and enjoy automatic e-mail virus protection.