pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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>&gt;From: Pierre Couderc <PIERRE@COUDERC.CC>
<DIV></DIV>&gt;To: pgsql-admin@postgresql.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>



view thread (6+ messages)  latest in thread

Message-ID: <BAY2-F30CPx33E1ioWw0000b1ad@hotmail.com>
Permalink:  ../BAY2-F30CPx33E1ioWw0000b1ad@hotmail.com/
Also on:    postgresql.org/message-id/BAY2-F30CPx33E1ioWw0000b1ad@hotmail.com

 · 

reply

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