| От | Tom Lane |
|---|---|
| Тема | Re: dropping constraints |
| Дата | |
| Msg-id | 12512.1283397635@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | dropping constraints (Kevin Kempter <cs_dba@consistentstate.com>) |
| Ответы |
Re: dropping constraints
|
| Список | pgsql-admin |
Kevin Kempter <cs_dba@consistentstate.com> writes:
> we have a few not null constraints we want to drop on very large tables.
> Unfortunately the drop's are taking hours. Is there a way to drop a not null
> constraint via the system catalogs?
Dropping a NOT NULL constraint is a trivial operation. The problem is
probably that you are blocked waiting to get a lock on the table.
Look for idle-in-transaction sessions that are holding locks on the
target table.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера