Re: Planner performance extremely affected by an hanging transaction (20-30 times)? - Mailing list pgsql-performance

From Tom Lane
Subject Re: Planner performance extremely affected by an hanging transaction (20-30 times)?
Date
Msg-id 5815.1380018947@sss.pgh.pa.us
Whole thread Raw
In response to Re: Planner performance extremely affected by an hanging transaction (20-30 times)?  (Kevin Grittner <kgrittn@ymail.com>)
Responses Re: Planner performance extremely affected by an hanging transaction (20-30 times)?
Re: Planner performance extremely affected by an hanging transaction (20-30 times)?
List pgsql-performance
Kevin Grittner <kgrittn@ymail.com> writes:
> Are we talking about the probe for the end (or beginning) of an
> index?  If so, should we even care about visibility of the row
> related to the most extreme index entry?  Should we even go to the
> heap during the plan phase?

Consider the case where some transaction inserted a wildly out-of-range
value, then rolled back.  If we don't check validity of the heap row,
we'd be using that silly endpoint value for planning purposes ---
indefinitely.  That's not an improvement over the situation that the
probe is meant to fix.

            regards, tom lane


pgsql-performance by date:

Previous
From: "Sam Wong"
Date:
Subject: Slow plan for MAX/MIN or LIMIT 1?
Next
From: jesper@krogh.cc
Date:
Subject: Re: Planner performance extremely affected by an hanging transaction (20-30 times)?