Re: SEQUENCES - Mailing list pgsql-sql

From Bruno Wolff III
Subject Re: SEQUENCES
Date
Msg-id 20061003145958.GA29003@wolff.to
Whole thread Raw
In response to SEQUENCES  ("Rodrigo Sakai" <rodrigo.sakai@zanthus.com.br>)
List pgsql-sql
On Mon, Oct 02, 2006 at 13:39:38 -0300, Rodrigo Sakai <rodrigo.sakai@zanthus.com.br> wrote:
>   Hi all,
> 
>  
> 
>   I need to get all sequences and their respective current values! Is there
> any catalog table or any other away to get this???

You can get their names from pg_class (with relkind = 'S') and then iterate
over the names and look at the table underlying each table (at last_value).


pgsql-sql by date:

Previous
From: chrisj
Date:
Subject: Re: Assigning a timestamp without timezone to a timestamp
Next
From: Andrew Sullivan
Date:
Subject: Re: Assigning a timestamp without timezone to a timestamp