Re: SELECT blocking on ALTER TABLE ADD FOREIGN KEY - Mailing list pgsql-hackers

From Tom Lane
Subject Re: SELECT blocking on ALTER TABLE ADD FOREIGN KEY
Date
Msg-id 21266.1055456592@sss.pgh.pa.us
Whole thread Raw
In response to Re: SELECT blocking on ALTER TABLE ADD FOREIGN KEY  ("Jim C. Nasby" <jim@nasby.net>)
Responses Re: SELECT blocking on ALTER TABLE ADD FOREIGN KEY  ("Jim C. Nasby" <jim@nasby.net>)
List pgsql-hackers
"Jim C. Nasby" <jim@nasby.net> writes:
> Is there any ALTER that would require blocking selects?

DROP INDEX, for certain.

> Even stuff like
> drop and rename should be protected by versioning, no?

No.  System-catalog changes are always READ COMMITTED mode.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Pre-allocation of shared memory ...
Next
From: Bruce Momjian
Date:
Subject: Re: Pre-allocation of shared memory ...