Re: pg_dump versus SERIAL, round N

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_dump versus SERIAL, round N
Дата
Msg-id 29538.1156100918@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_dump versus SERIAL, round N  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> What method will people use to see if a sequence used as a default is
> one that was created by SERIAL, and will be dropped by drop table, or
> manually created?  How does that distinction show up in pg_dump?

BTW, it's easy to see if a column has an associated sequence:
pg_get_serial_sequence().  It's going from the sequence to the column
that requires manually looking into pg_depend.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump versus SERIAL, round N
Следующее
От: Naz Gassiep
Дата:
Сообщение: PostgreSQL on 64 bit Linux