pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Kevin Grittner <kgrittn@ymail.com>
Cc: Andres Freund <andres@2ndquadrant.com>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: Amit Kapila <amit.kapila@huawei.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Performance bug in prepared statement binding in 9.2?
Date: Mon, 10 Nov 2014 15:51:12 -0800
Message-ID: <54614F70.9040103@agliodbs.com> (raw)
In-Reply-To: <WM!bb53080808a886edef8f162c93da27b1200c7d0bf247528f9e64fb8324581009095f2c10901ec6d1441c847c10826bbf!@asav-2.01.com>
References: <WM!f3d412a8ff9fb2a52f4cfd0f48c225b6122ba5bf1e1523173b5dbc63db143b9cab09ac3f5518a12a19d2507538472d98!@asav-1.01.com>
	<24236.1383940000@sss.pgh.pa.us>
	<1384014645.82057.YahooMailNeo@web162903.mail.bf1.yahoo.com>
	<19685.1384307200@sss.pgh.pa.us>
	<WM!53245515c260eb3f3ebba35fd7da76a6c4d81274ee6f204f23312f2e9a8487c869ace190beab2dada668e213a6b65dd7!@asav-2.01.com>
	<5283D433.3040406@agliodbs.com>
	<27642.1388512538@sss.pgh.pa.us>
	<WM!4667f3cb5dc47231ae35b8e8536208e1377cd80dc7752b6791aae9904e622051fd053c46bc2f2a0a00de258290b6e155!@asav-1.01.com>
	<54610878.3060203@agliodbs.com>
	<CAMkU=1z_LFv9msivo11cH7WEdZ1+WVtbn0wb_YxKDHapYo22cA@mail.gmail.com>
	<WM!8b9334d706cd2687c81bb2579556920dbbbf86d48a79276fb032b1f3067361e0a058faa358b7f794d63fda9d8fd31f27!@asav-3.01.com>
	<54610C41.4010504@agliodbs.com>
	<CAMkU=1x8qZ4HZ7NmJN=w2vKhxMqyg-eo4awJ26e4jZLFNZsFHw@mail.gmail.com>
	<WM!bb53080808a886edef8f162c93da27b1200c7d0bf247528f9e64fb8324581009095f2c10901ec6d1441c847c10826bbf!@asav-2.01.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (43+ messages)

Message-ID: <54614F70.9040103@agliodbs.com>
Permalink:  ../54614F70.9040103@agliodbs.com/
Also on:    postgresql.org/message-id/54614F70.9040103@agliodbs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: josh@agliodbs.com, jeff.janes@gmail.com, tgl@sss.pgh.pa.us, kgrittn@ymail.com, andres@2ndquadrant.com, andrew@dunslane.net, amit.kapila@huawei.com
  Subject: Re: Performance bug in prepared statement binding in 9.2?
  In-Reply-To: <54614F70.9040103@agliodbs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox