Re: checking currval - Mailing list pgsql-admin

From Jodi Kanter
Subject Re: checking currval
Date
Msg-id 3EF07624.7010904@virginia.edu
Whole thread Raw
In response to checking currval  (Jodi Kanter <jkanter@virginia.edu>)
Responses Re: checking currval  ("scott.marlowe" <scott.marlowe@ihs.com>)
List pgsql-admin
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


 

 

 


pgsql-admin by date:

Previous
From: Weiping He
Date:
Subject: Re: checking currval
Next
From: "Kuhn, Dylan K (4520500D)"
Date:
Subject: Re: configure readline error