get sequence name from table name

Поиск
Список
Период
Сортировка
От Uwe Maiwald
Тема get sequence name from table name
Дата
Msg-id 4B193E8E.6010603@kiss-net.de
обсуждение исходный текст
Ответы Re: get sequence name from table name  (Gerardo Herzig <gherzig@fmed.uba.ar>)
Re: get sequence name from table name  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-sql
how to get the name of the sequence that is responsible for setting the 
autoincrement value of a tables primary key column?

i only have the name of the table and need to have an appropiate sql 
statement.


i need this to write a program that loops through all tables of a 
database and then ajusts the start values of the sequencees in case the 
table has an automatic id value (serial/bigserial)


thanks,
Uwe


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

Предыдущее
От: Gerardo Herzig
Дата:
Сообщение: Re: create user xxx with md5 string?
Следующее
От: Another Trad
Дата:
Сообщение: Getting more than one row in UNIQUE fields