Re: error in trigger creation - Mailing list pgsql-general

From yudhi s
Subject Re: error in trigger creation
Date
Msg-id CAEzWdqe23gOy3_0=kyNqvuA3Gj-qWad1nxTh+PSHZuqg7QYg2g@mail.gmail.com
Whole thread Raw
In response to Re: error in trigger creation  (Ron Johnson <ronljohnsonjr@gmail.com>)
List pgsql-general

On Mon, 22 Apr, 2024, 1:34 am Ron Johnson, <ronljohnsonjr@gmail.com> wrote:
On Sun, Apr 21, 2024 at 2:58 PM yudhi s <learnerdatabase99@gmail.com> wrote:
the partition drop from parent is taking longer as it scans all the partitions of the child table
 
Does the relevant supporting index exist on the child table?

Yes all the child tables have foreign keys indexed.

 Again I don't want to divert the main topic(trigger creation) . I will provide the exact test case how it puts exclusive lock and runs longer as scans all child partitions (which must be using indexes though) but as the number of partitions increase the time of drop partitions increases. 

pgsql-general by date:

Previous
From: Norbert Sándor
Date:
Subject: query multiple schemas
Next
From: Steve Baldwin
Date:
Subject: Re: query multiple schemas