Re: SEQUENCES

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: SEQUENCES
Дата
Msg-id 20061003145958.GA29003@wolff.to
обсуждение исходный текст
Ответ на SEQUENCES  ("Rodrigo Sakai" <rodrigo.sakai@zanthus.com.br>)
Список 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 по дате отправления:

Предыдущее
От: chrisj
Дата:
Сообщение: Re: Assigning a timestamp without timezone to a timestamp
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: Assigning a timestamp without timezone to a timestamp