Re: Does SET STATISTICS lock the table?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joseph Shraibman <jks(at)selectacast(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Does SET STATISTICS lock the table?
Date: 2004-02-01 06:56:54
Message-ID: 14307.1075618614@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Joseph Shraibman <jks(at)selectacast(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Oleg Bartunov 2004-02-01 09:58:02 Re: Search across multiple sources
Previous Message Merrall, Graeme 2004-02-01 06:33:09 Search across multiple sources