Re: Seeing execution plan of foreign key constraint check? - Mailing list pgsql-performance

From Jim Nasby
Subject Re: Seeing execution plan of foreign key constraint check?
Date
Msg-id 1420044a-d3ac-b503-9fff-e5ed29e223e7@BlueTreble.com
Whole thread Raw
In response to Re: Seeing execution plan of foreign key constraint check?  (Robert Klemme <shortcutter@googlemail.com>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PERFORMANCE] Performance index and table
Next
From: Abadie Lana
Date:
Subject: Very slow query (3-4mn) on a table with 25millions rows