In postgres 9.1, will this query require a table lock? (inhibit other clients from writing, or writing and reading)
ALTER TABLE "foos" ADD COLUMN "bar" boolean DEFAULT 'f'
Are there some cases where it will, some where it won't?
Does the default value make it slower?
If it does lock the table, does it also have to operate on every row in the table? Or will the lock only be held for a split second?
Where can I learn more about what types of queries do and do not lock the table?