Re: Performance bug in prepared statement binding in 9.2? - Mailing list pgsql-performance

From Josh Berkus
Subject Re: Performance bug in prepared statement binding in 9.2?
Date
Msg-id 54614F70.9040103@agliodbs.com
Whole thread Raw
In response to Re: Performance bug in prepared statement binding in 9.2?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
On 11/10/2014 12:13 PM, Jeff Janes wrote:

> The related problem where the "end" rows are actually needed (e.g. ORDER
> BY...LIMIT) has not been fixed.
>
> My idea to fix that was to check if the row's creation-transaction was in
> the MVCC snapshot (which just uses local memory) before checking if that
> creation-transaction had committed (which uses shared memory).  But I
> didn't really have the confidence to push that given the fragility of that
> part of the code and my lack of experience with it.  See "In progress
> INSERT wrecks plans on table" thread.

Oh!  I thought this issue had been fixed by Tom's patch as well.  It
could very well describe what I'm seeing (in the other thread), since
some of the waiting queries are INSERTs, and other queries do selects
against the same tables concurrently.

Although ... given that I'm seeing preposterously long BIND times (like
50 seconds), I don't think that's explained just by bad plans.

--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com


pgsql-performance by date:

Previous
From: Eric Ramirez
Date:
Subject: Re: updating statistics on slow running query
Next
From: avpro avpro
Date:
Subject: trigger Before or After