public inbox for [email protected]  
help / color / mirror / Atom feed
Re: error in trigger creation
2+ messages / 2 participants
[nested] [flat]

* Re: error in trigger creation
@ 2024-04-21 20:04 Ron Johnson <[email protected]>
  2024-04-21 20:15 ` Re: error in trigger creation yudhi s <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: Ron Johnson @ 2024-04-21 20:04 UTC (permalink / raw)
  To: yudhi s <[email protected]>; +Cc: David G. Johnston <[email protected]>; Tom Lane <[email protected]>; pgsql-general <[email protected]>

On Sun, Apr 21, 2024 at 2:58 PM yudhi s <[email protected]> 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?


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: error in trigger creation
  2024-04-21 20:04 Re: error in trigger creation Ron Johnson <[email protected]>
@ 2024-04-21 20:15 ` yudhi s <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: yudhi s @ 2024-04-21 20:15 UTC (permalink / raw)
  To: Ron Johnson <[email protected]>; +Cc: David G. Johnston <[email protected]>; Tom Lane <[email protected]>; pgsql-general <[email protected]>

On Mon, 22 Apr, 2024, 1:34 am Ron Johnson, <[email protected]> wrote:

> On Sun, Apr 21, 2024 at 2:58 PM yudhi s <[email protected]>
> 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.

>


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2024-04-21 20:15 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-04-21 20:04 Re: error in trigger creation Ron Johnson <[email protected]>
2024-04-21 20:15 ` yudhi s <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox