Re: CLUSTER locking - Mailing list pgsql-hackers

From Tom Lane
Subject Re: CLUSTER locking
Date
Msg-id 15509.1084194419@sss.pgh.pa.us
Whole thread Raw
In response to Re: CLUSTER locking  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-hackers
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
>> No.  Committing the relfilenode swap would cut the knees off of any
>> active scan on the old file.

> Could it upgrade its lock to exclusive just before doing the swap?

That is a recipe for deadlock failures.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Re: CLUSTER locking
Next
From: Christopher Kings-Lynne
Date:
Subject: Bug in renaming view columns