Re: find the sequence name from schema, table, field

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: find the sequence name from schema, table, field
Дата
Msg-id 20080110141243.GB6465@alvh.no-ip.org
обсуждение исходный текст
Ответ на find the sequence name from schema, table, field  (johnf <jfabiani@yolo.com>)
Ответы Re: find the sequence name from schema, table, field  (johnf <jfabiani@yolo.com>)
Список pgsql-admin
johnf wrote:

> I have to go to the well and ask you guys how in the he_l I can determine the
> sequence name if I only have the schema name (normally 'public'), the table
> name, and the field name (normally the PK).

pg_get_serial_sequence()

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Richard Ray
Дата:
Сообщение: Re: pg_dumpall --exclude
Следующее
От: Kevin Kempter
Дата:
Сообщение: Re: Postgres replication