Re: Concurrent deadlock scenario with DROP INDEX on partitioned index - Mailing list pgsql-hackers

From Jimmy Yih
Subject Re: Concurrent deadlock scenario with DROP INDEX on partitioned index
Date
Msg-id BYAPR05MB6454551BCCF049ADAE65A157BD119@BYAPR05MB6454.namprd05.prod.outlook.com
Whole thread Raw
In response to Re: Concurrent deadlock scenario with DROP INDEX on partitioned index  (Zhihong Yu <zyu@yugabyte.com>)
List pgsql-hackers
Zhihong Yu <zyu@yugabyte.com> wrote:
> Hi,
> For RangeVarCallbackForDropRelation():
>
> +               LockRelationOid(indexRelationOid, heap_lockmode);
>
> Since the above is called for both if and else blocks, it can be lifted outside.

Thanks for the feedback.  Attached new v3 patch with feedback addressed.

--
Jimmy Yih (VMware)
Gaurab Dey (VMware)
Attachment

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: support for MERGE
Next
From: Jeff Davis
Date:
Subject: Re: Proposal: Support custom authentication methods using hooks