Re: Serialized Transaction Locking Issues - Mailing list pgsql-sql

From Tom Lane
Subject Re: Serialized Transaction Locking Issues
Date
Msg-id 18900.1044400888@sss.pgh.pa.us
Whole thread Raw
In response to Serialized Transaction Locking Issues  (justin <jtyme@intrusic.com>)
List pgsql-sql
justin <jtyme@intrusic.com> writes:
> I'm currently in the midst of working on a serializable transaction 
> which drops indexes on several tables, does a bulk copy, and rebuilds 
> the indexes. Based on what I've read it seemed as though I'd be able to 
> concurrently execute read only queries against these tables,

Nope, because "drop index" obtains an exclusive lock on the table.
(If it didn't, some other query might try to *use* the index, which
would create a bit of a problem if the DROP committed midway through.)
        regards, tom lane


pgsql-sql by date:

Previous
From: Jan Wieck
Date:
Subject: Re: iceberg queries
Next
From: "Luke Pascoe"
Date:
Subject: Inserting a tab character