Re: Weird constraint output

Поиск
Список
Период
Сортировка
От Andreas Pflug
Тема Re: Weird constraint output
Дата
Msg-id 3F4F0E09.1000004@pse-consulting.de
обсуждение исходный текст
Ответ на Re: Weird constraint output  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Список pgsql-hackers
Christopher Kings-Lynne wrote:

>I have changed psql to use pg_get_viewdef(oid, true).  I agree with Tom for
>not using it in dumps just yet though.
>
While there still might be a pg_dump option to do this.

>Is there a function for getting nice constraint defs?
>
Of course there is, use pg_get_constraintdef(text, bool) for this.
pg_get_constraintdef(text, bool)
pg_get_expr(text, oid, bool)
pg_get_indexdef(text, int4, bool)
pg_get_ruledef(text, bool)
pg_get_viewdef(text, bool)
all have the pretty-print bool. Note that pg_get_indexdef's second 
parameter selects if the complete definition is returned (=0) or only 
that column's definition.

Regards,
Andreas





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

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: ALTER TABLE
Следующее
От: Giuseppe Tanzilli - CSF
Дата:
Сообщение: pgsql 7.4b2 bug on column defaults?