Query planner and variables with constraint_exclusion

From: Aleksej Trofimov <aleksej(dot)trofimov(at)ruptela(dot)lt>
To: pgsql-novice(at)postgresql(dot)org
Subject: Query planner and variables with constraint_exclusion
Date: 2011-10-13 08:05:37
Message-ID: 4E969BD1.4010402@ruptela.lt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hello,
I've got stuck with such a problem.. We are doing partitioning, but as I've
read, query planner does not support variables in WHERE clause, so we
can not use pgsql function with partitioning (where function parameters
are passed into where clause of select). Is it possible to affect on
planner behavior, that planner would be taking into account Variables?
Or may be there are some other possibilities to use partitioning with
variables in where clause? Such as dynamic sql, querying directly
partitioned table..

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Aleksej Trofimov 2011-10-13 08:26:36 Re: Query planner and variables with constraint_exclusion
Previous Message Dournaee, Blake 2011-10-13 00:04:34 Re: question on cross-data center replication