Re: CLUSTER locking

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: CLUSTER locking
Date: 2004-05-10 13:06:59
Message-ID: 15509.1084194419@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bricklen 2004-05-10 14:11:20 Re: Adding MERGE to the TODO list (resend with subject)
Previous Message Christopher Kings-Lynne 2004-05-10 12:27:03 Re: CLUSTER locking