pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Kretschmer <akretschmer@spamfence.net>
To: pgsql-performance@postgresql.org
Subject: Re: Query slow as Function
Date: Sat, 18 Feb 2012 18:32:55 +0100
Message-ID: <20120218173255.GA29781@tux> (raw)
In-Reply-To: <27854.1329583042@sss.pgh.pa.us>
References: <CAFLkBaWRKp7+yVdk3dCecztxEztc+YFS4ks=x3KiSWSfyDZvKw@mail.gmail.com>
	<20120218160244.GA23315@tux>
	<27854.1329583042@sss.pgh.pa.us>

Tom Lane <tgl@sss.pgh.pa.us> wrote:

> Andreas Kretschmer <akretschmer@spamfence.net> writes:
> > You can check the plan with the auto_explain - Extension, and you can
> > force the planner to create a plan based on the actual input-value by
> > using dynamic SQL (EXECUTE 'your query string' inside the function)
> 
> Steve *is* using EXECUTE, so that doesn't seem to be the answer.  I'm

Ohhh yes, my fault, sorry...


Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°



view thread (9+ messages)  latest in thread

Message-ID: <20120218173255.GA29781@tux>
Permalink:  ../20120218173255.GA29781@tux/
Also on:    postgresql.org/message-id/20120218173255.GA29781@tux

 · 

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: akretschmer@spamfence.net
  Subject: Re: Query slow as Function
  In-Reply-To: <20120218173255.GA29781@tux>

* 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