Re: reset all sequences

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: reset all sequences
Дата
Msg-id 20060505024333.GA12255@wolff.to
обсуждение исходный текст
Ответ на reset all sequences  ("Sriram Dandapani" <sdandapani@counterpane.com>)
Список pgsql-admin
On Thu, May 04, 2006 at 14:20:39 -0700,
  Sriram Dandapani <sdandapani@counterpane.com> wrote:
> Hi
>
>
>
> I have a scenario where I need to reset all sequences(about 400). Is
> there a system table that I can query to get a list of sequences
> (Postgres 8.1.x)

You can do something like:
select * from pg_class where relkind = 'S';
The relname column will give you the sequence name.

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Mark Liberman"
Дата:
Сообщение: Re: Tale partitioning
Следующее
От: Steve Burrows
Дата:
Сообщение: Re: How to find current running process