From: Priya G <sreepriya@hotmail.com>
To: pierre@couderc.cc
To: pgsql-admin@postgresql.org
Subject: Re: How to read a sequence without incrementing it?
Date: Fri, 29 Aug 2003 17:08:52 -0400
Message-ID: <BAY2-F30CPx33E1ioWw0000b1ad@hotmail.com> (raw)
<html><div style='background-color:'><DIV>
<P>select last_value from 'seq';<BR><BR></P></DIV>
<DIV></DIV>>From: Pierre Couderc <PIERRE@COUDERC.CC>
<DIV></DIV>>To: pgsql-admin@postgresql.org
<DIV></DIV>>Subject: [ADMIN] How to read a sequence without incrementing it?
<DIV></DIV>>Date: Fri, 29 Aug 2003 18:27:09 +0200
<DIV></DIV>>
<DIV></DIV>>I would like to read the current value of a sequence, or a value not
<DIV></DIV>>too far of the current value (for example, the value it was a few
<DIV></DIV>>seconds or minutes ago). Is it possible (without any nexrval that
<DIV></DIV>>should increment it)?
<DIV></DIV>>
<DIV></DIV>>Thank you all
<DIV></DIV>>
<DIV></DIV>>Pierre Couderc
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>---------------------------(end of
<DIV></DIV>>broadcast)---------------------------
<DIV></DIV>>TIP 4: Don't 'kill -9' the postmaster
<DIV></DIV></div><br clear=all><hr> <a href="http://g.msn.com/8HMJENUS/2749??PS="><b>Get MSN 8</b> and enjoy automatic e-mail virus protection. </a> </html>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: sreepriya@hotmail.com, pierre@couderc.cc
Subject: Re: How to read a sequence without incrementing it?
In-Reply-To: <BAY2-F30CPx33E1ioWw0000b1ad@hotmail.com>
References: <BAY2-F30CPx33E1ioWw0000b1ad@hotmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox