Re: DDL Damage Assessment - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: DDL Damage Assessment
Date
Msg-id 20141002211915.GA5311@eldon.alvh.no-ip.org
Whole thread Raw
In response to Re: DDL Damage Assessment  (Peter Geoghegan <pg@heroku.com>)
List pgsql-hackers
Peter Geoghegan wrote:

> Why is NOWAIT only supported for SET TABLESPACE? I guess it's just a
> particularly bad case. NOWAIT might be the wrong thing for DDL
> generally.

I didn't realize we supported NOWAIT for SET TABLESPACE.  My hunch is
that if we have that, it should really be supported for anything that
does a table rewrite, or perhaps even anything that requires a full
table scan (such as adding a new CHECK constraint).

OTOH it does seem a wart to have NOWAIT in alter table generally.  You
can get the same effect by doing a LOCK TABLE .. NOWAIT and then ALTER
TABLE, right?

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Marti Raudsepp
Date:
Subject: [PATCH] Simplify EXISTS subqueries containing LIMIT
Next
From: Alvaro Herrera
Date:
Subject: Re: DDL Damage Assessment