Re: dropping constraints

Поиск
Список
Период
Сортировка
От Kevin Kempter
Тема Re: dropping constraints
Дата
Msg-id 201009012124.30922.cs_dba@consistentstate.com
обсуждение исходный текст
Ответ на Re: dropping constraints  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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

thanks

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: dropping constraints
Следующее
От: Willy-Bas Loos
Дата:
Сообщение: Re: Query Optimization with Partitioned Tables