Re: prepared statements and partitioning (partition elimination not working)

From: Kenneth Marshall <ktm(at)rice(dot)edu>
To: Kevin Kempter <kevink(at)consistentstate(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: prepared statements and partitioning (partition elimination not working)
Date: 2010-03-08 17:31:43
Message-ID: 20100308173143.GD19562@it.is.rice.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Mon, Mar 08, 2010 at 10:24:56AM -0700, Kevin Kempter wrote:
> Hi all;
>
> we've found that partition elimination is not happening for a prepared
> statement, however running the same statement in psql manually does give us
> partition elimination.
>
> Is this a known issue?
>

Yes, see the recent threads on performance of prepared queries.
It concerns the availability of information on the query inputs
that is available to psql and not a pre-prepared query.

Cheers,
Ken

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Ben Chobot 2010-03-08 17:38:55 Re: Testing FusionIO
Previous Message Kevin Kempter 2010-03-08 17:24:56 prepared statements and partitioning (partition elimination not working)