Re: How to read a sequence without incrementing it?

From: "Priya G" <sreepriya(at)hotmail(dot)com>
To: pierre(at)couderc(dot)cc, pgsql-admin(at)postgresql(dot)org
Subject: Re: How to read a sequence without incrementing it?
Date: 2003-08-29 21:08:52
Message-ID: BAY2-F30CPx33E1ioWw0000b1ad@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

<html><div style='background-color:'><DIV>
<P>select last_value from 'seq';<BR><BR></P></DIV>
<DIV></DIV>&gt;From: Pierre Couderc <PIERRE(at)COUDERC(dot)CC>
<DIV></DIV>&gt;To: pgsql-admin(at)postgresql(dot)org
<DIV></DIV>&gt;Subject: [ADMIN] How to read a sequence without incrementing it?
<DIV></DIV>&gt;Date: Fri, 29 Aug 2003 18:27:09 +0200
<DIV></DIV>&gt;
<DIV></DIV>&gt;I would like to read the current value of a sequence, or a value not
<DIV></DIV>&gt;too far of the current value (for example, the value it was a few
<DIV></DIV>&gt;seconds or minutes ago). Is it possible (without any nexrval that
<DIV></DIV>&gt;should increment it)?
<DIV></DIV>&gt;
<DIV></DIV>&gt;Thank you all
<DIV></DIV>&gt;
<DIV></DIV>&gt;Pierre Couderc
<DIV></DIV>&gt;
<DIV></DIV>&gt;
<DIV></DIV>&gt;---------------------------(end of
<DIV></DIV>&gt;broadcast)---------------------------
<DIV></DIV>&gt;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>

Attachment Content-Type Size
unknown_filename text/html 1.1 KB

Browse pgsql-admin by date

  From Date Subject
Next Message Haron, Charles 2003-08-29 21:22:36 Define function with no return value?
Previous Message Nick Fankhauser 2003-08-29 20:20:52 Re: How to read a sequence without incrementing it?