Re: Seeing execution plan of foreign key constraint check?

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: Seeing execution plan of foreign key constraint check?
Дата
Msg-id 1420044a-d3ac-b503-9fff-e5ed29e223e7@BlueTreble.com
обсуждение исходный текст
Ответ на Re: Seeing execution plan of foreign key constraint check?  (Robert Klemme <shortcutter@googlemail.com>)
Список pgsql-performance
On 7/22/16 3:37 AM, Robert Klemme wrote:
> I am wondering what to do if the same statement has multiple execution
> plans if that is possible in such a scenario. Present all the plans or
> just the one with the highest impact? Show them next to each other so
> the user is immediately aware that all these plans originated from the
> same piece of SQL?

plpgsql runs all it's stuff via SPI, which can replan queries. So yes, I
think it's necessary to deal with that.

That said, if we only kept the most expensive X plans from a given
function, that could handle both cases.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)   mobile: 512-569-9461


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PERFORMANCE] Performance index and table
Следующее
От: Abadie Lana
Дата:
Сообщение: Very slow query (3-4mn) on a table with 25millions rows