pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jodi Kanter <jkanter@virginia.edu>
To: Weiping He <laser@zhengmai.com.cn>
Cc: Postgres Admin List <pgsql-admin@postgresql.org>
Subject: Re: checking currval
Date: Wed, 18 Jun 2003 10:24:36 -0400
Message-ID: <3EF07624.7010904@virginia.edu> (raw)
References: <3EF06F67.1010901@virginia.edu>
	<3EF07087.8080409@zhengmai.com.cn>

I tried that and it did not work. It won't be a problem in the code 
since it appears that we are always doing a nextval prior to currval, 
but I was just wondering about how to do it while in a psql session.

Weiping He wrote:

> select last_value from your_sequence;
>
> Jodi Kanter wrote:
>
>> I cannot view the currval because it is not set in the session yet. 
>> Is there a way to set it without having to increment the value?
>> Thanks
>> Jodi
>
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings


-- 

_______________________________
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu <mailto:jkanter@virginia.edu>

 

 

 

view thread (5+ messages)  latest in thread

Message-ID: <3EF07624.7010904@virginia.edu>
Permalink:  ../3EF07624.7010904@virginia.edu/
Also on:    postgresql.org/message-id/3EF07624.7010904@virginia.edu

 · 

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: jkanter@virginia.edu, laser@zhengmai.com.cn
  Subject: Re: checking currval
  In-Reply-To: <3EF07624.7010904@virginia.edu>
  References: <3EF06F67.1010901@virginia.edu> <3EF07087.8080409@zhengmai.com.cn> <3EF07624.7010904@virginia.edu>

* 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