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

Поиск
Список
Период
Сортировка
От johnf
Тема Re: find the sequence name from schema, table, field
Дата
Msg-id 200801100712.39496.jfabiani@yolo.com
обсуждение исходный текст
Ответ на Re: find the sequence name from schema, table, field  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-admin
On Thursday 10 January 2008 06:12:43 am Alvaro Herrera wrote:
> pg_get_serial_sequence

But it only works with a serial data type.

Create a sequence "mySequence"
Create a field "myField smallint NOT NULL  DEFAULT
nextval('mysequence'::regclass)"

So given the name of the table and the name of the field. How can I find the
name of the associated squence?



--
John Fabiani

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

Предыдущее
От: Kevin Kempter
Дата:
Сообщение: Re: Postgres replication
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Postgres replication