Re: BUG #4670: Cannot get domain constraint names from psql
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #4670: Cannot get domain constraint names from psql |
| Дата | |
| Msg-id | 4828.1235278128@sss.pgh.pa.us обсуждение |
| Ответ на | BUG #4670: Cannot get domain constraint names from psql ("Alexander V. Chernikov" <melifaro@ipfw.ru>) |
| Список | pgsql-bugs |
"Alexander V. Chernikov" <melifaro@ipfw.ru> writes:
> It would be nice to see domain constraint names in \dD output of psql
> utility. Without this feature the only way to delete (or modify) constraint
> is to do pg_dump -s (or use something like phpgadmin) to find out constraint
> name and only after that issue ALTER DOMAIN .. DROP constraint statement.
Try
select * from information_schema.domain_constraints;
The \dD view is already too wide IMHO, no need to make it wider for this.
However, your proposed patch points out something that seems to me to be
a bug in \dD: it produces multiple rows for the same domain, if said
domain has more than one constraint. Surely that's confusing and
undesirable.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера