| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера