Обсуждение: Does SET STATISTICS lock the table?

Поиск
Список
Период
Сортировка

Does SET STATISTICS lock the table?

От
Joseph Shraibman
Дата:
Does ALTER TABLE <table> ALTER <field> SET STATISTICS 100; lock the
table?  I just tried to do that while a query is running and the ALTER
is hanging.

Re: Does SET STATISTICS lock the table?

От
Tom Lane
Дата:
Joseph Shraibman <jks@selectacast.net> writes:
> Does ALTER TABLE <table> ALTER <field> SET STATISTICS 100; lock the
> table?  I just tried to do that while a query is running and the ALTER
> is hanging.

Any ALTER TABLE will lock the table.

            regards, tom lane