pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Yves Dorfsman <yves@zioup.com>
To: pgsql-performance@postgresql.org
Subject: Re: SELECT slows down on sixth execution
Date: Sat, 17 Oct 2015 07:29:57 -0600
Message-ID: <56224D55.1020907@zioup.com> (raw)
In-Reply-To: <A737B7A37273E048B164557ADEF4A58B50FB8D5E@ntex2010i.host.magwien.gv.at>
References: <561E068F.1040702@socialserve.com>
	<A737B7A37273E048B164557ADEF4A58B50FB8D5E@ntex2010i.host.magwien.gv.at>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

On 2015-10-14 03:00, Albe Laurenz wrote:
> 
> You are encountering "custom plans", introduced in 9.2.
> 
> When a statement with parameters is executed, PostgreSQL will not only generate
> a generic plan, but for the first 5 executions it will substitute the arguments
> and generate and execute a custom plan for that.

Wow! Thanks. I feel this should be documented a bit better.

Shouldn't this be explained in at least as much details as in your
explanation, in the sql-prepare document?

Yves.
-- 
http://yves.zioup.com
gpg: 4096R/32B0F416



-- 
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 (15+ messages)  latest in thread

Message-ID: <56224D55.1020907@zioup.com>
Permalink:  ../56224D55.1020907@zioup.com/
Also on:    postgresql.org/message-id/56224D55.1020907@zioup.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: yves@zioup.com
  Subject: Re: SELECT slows down on sixth execution
  In-Reply-To: <56224D55.1020907@zioup.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