Re: error in trigger creation

Поиск
Список
Период
Сортировка
От yudhi s
Тема Re: error in trigger creation
Дата
Msg-id CAEzWdqe23gOy3_0=kyNqvuA3Gj-qWad1nxTh+PSHZuqg7QYg2g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: error in trigger creation  (Ron Johnson <ronljohnsonjr@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Norbert Sándor
Дата:
Сообщение: query multiple schemas
Следующее
От: Steve Baldwin
Дата:
Сообщение: Re: query multiple schemas