Sequence Manipulation Functions - Mailing list pgsql-general

From MG
Subject Sequence Manipulation Functions
Date
Msg-id 001f01c615f5$fac4a540$340aa8c0@geisslinger
Whole thread Raw
Responses Re: Sequence Manipulation Functions  (John Sidney-Woollett <johnsw@wardbrook.com>)
Re: Sequence Manipulation Functions  (Tino Wildenhain <tino@wildenhain.de>)
Re: Sequence Manipulation Functions  (Volkan YAZICI <yazicivo@ttnet.net.tr>)
List pgsql-general
Hello,
 
I use PostgreSQL 8.0.3.
 
I want to get the information of the last value of a sequence.
 
The function 'currval' only gives the value back, if before a nextval is executed.

Return the value most recently obtained by nextval for this sequence in the current session. (An error is reported if nextval has never been called for this sequence in this session.) Notice that because this is returning a session-local value, it gives a predictable answer whether or not other sessions have executed nextval since the current session did.

But that is not very helpful.

I noticed that the phpPgAdmin has that information

NameLast valueIncrement byMax valueMin valueCache valueLog countIs cycled?Is called?
adr_dsnr108192233720368547758071125NoYes

So how can I get that information?

Thanks

Michaela

 

 

pgsql-general by date:

Previous
From: Jaime Casanova
Date:
Subject: Re: regarding triggers
Next
From: Jaime Casanova
Date:
Subject: Re: regarding triggers