pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Smet <guillaume.smet@gmail.com>
To: david@lang.hm
Cc: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Scott Carey <scott@richrelevance.com>
Cc: bricklen <bricklen@gmail.com>
Cc: Scott Marlowe <scott.marlowe@gmail.com>
Cc: Merlin Moncure <mmoncure@gmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Poor plan choice in prepared statement
Date: Thu, 1 Jan 2009 20:29:43 +0100
Message-ID: <1d4e0c10901011129w443a096apac00c9d106669604@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.1.10.0901011222190.15026@asgard.lang.hm>
References: <33b743250812301059u31ce82faw3d72a38280b37402@mail.gmail.com>
	<b42b73150812301142w4483978ahfb819b0313150dbb@mail.gmail.com>
	<BDFBB77C9E07BE4A984DAAE981D19F961ACD5F388E@EXVMBX018-1.exch018.msoutlookonline.net>
	<2796.1230678149@sss.pgh.pa.us>
	<20081231160118.GE3809@alvh.no-ip.org>
	<1d4e0c10901011022v4a1d5eeaidc2692a7729e79df@mail.gmail.com>
	<alpine.DEB.1.10.0901011222190.15026@asgard.lang.hm>

On Thu, Jan 1, 2009 at 9:24 PM,  <david@lang.hm> wrote:
> forgive my ignorance here, but if it's unnamed how can you reference it
> later to take advantage of the parsing?

You can't. That's what unnamed prepared statements are for.

It's not obvious to me that the parsing phase is worth any "caching".
From my experience, the planning phase takes far much time on complex
queries.

-- 
Guillaume



view thread (20+ messages)  latest in thread

Message-ID: <1d4e0c10901011129w443a096apac00c9d106669604@mail.gmail.com>
Permalink:  ../1d4e0c10901011129w443a096apac00c9d106669604@mail.gmail.com/
Also on:    postgresql.org/message-id/1d4e0c10901011129w443a096apac00c9d106669604@mail.gmail.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: guillaume.smet@gmail.com, david@lang.hm, alvherre@commandprompt.com, tgl@sss.pgh.pa.us, scott@richrelevance.com, bricklen@gmail.com, scott.marlowe@gmail.com, mmoncure@gmail.com
  Subject: Re: Poor plan choice in prepared statement
  In-Reply-To: <1d4e0c10901011129w443a096apac00c9d106669604@mail.gmail.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