sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
Joseph Shraibman's Avatar

Does SET STATISTICS lock the table?


Question posted by: Joseph Shraibman (Guest) on November 22nd, 2005 08:49 AM
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.

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

1 Answer Posted
Tom Lane's Avatar
Guest - n/a Posts
#2: Re: Does SET STATISTICS lock the table?

Joseph Shraibman <jks@selectacast.net> writes:[color=blue]
> 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.[/color]

Any ALTER TABLE will lock the table.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

 
Not the answer you were looking for? Post your question . . .
196,952 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 196,952 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors