Re: dropping constraints

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: Kevin Kempter
Дата:
Сообщение: dropping constraints
Следующее
От: Kevin Kempter
Дата:
Сообщение: Re: dropping constraints