Does SET STATISTICS lock the table?

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

Does SET STATISTICS lock the table?

От:
Joseph Shraibman <jks@selectacast.net>
Дата:
Does ALTER TABLE  ALTER  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 <tgl@sss.pgh.pa.us>
Дата:
Joseph Shraibman  writes:
> Does ALTER TABLE  ALTER  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
FAQ