Re: Poor performance for delete query

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Poor performance for delete query
Дата
Msg-id 6664.1398436604@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Poor performance for delete query  (Jonatan Evald Buus <jonatan.buus@cellpointmobile.com>)
Список pgsql-performance
Jonatan Evald Buus <jonatan.buus@cellpointmobile.com> writes:
> On 24 April 2014 23:25, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Jonatan Evald Buus <jonatan.buus@cellpointmobile.com> writes:
>>> Why is "order2transaction_fk" being triggered twice? Is that because
>>> there're two affected rows?

>> No, I'd have expected a delete of multiple rows to show as calls=N,
>> not N separate entries.

> This doesn't explain the extra trigger of "order2transaction_fk".
> Any guidelines as to how we may investigate this further would be greatly
> appreciated.

If you could show us your exact database schema, it might become
clearer what's happening.  I'm wondering about duplicate constraint names
for instance ...

            regards, tom lane


В списке pgsql-performance по дате отправления:

Предыдущее
От: Дмитрий Шалашов
Дата:
Сообщение: Re: Server vacuuming the same table again and again
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: pl/pgsql performance