Re: Query planner and variables with constraint_exclusion

Поиск
Список
Период
Сортировка
От Aleksej Trofimov
Тема Re: Query planner and variables with constraint_exclusion
Дата
Msg-id 4E96A0BC.2090706@ruptela.lt
обсуждение исходный текст
Ответ на Query planner and variables with constraint_exclusion  (Aleksej Trofimov <aleksej.trofimov@ruptela.lt>)
Список pgsql-novice
On 10/13/2011 11:05 AM, Aleksej Trofimov wrote:
> 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..
>
>
May be there is a way how to cast variable constant? Or it is only
possible using dynamic sql?

В списке pgsql-novice по дате отправления:

Предыдущее
От: Aleksej Trofimov
Дата:
Сообщение: Query planner and variables with constraint_exclusion
Следующее
От: Craig Barnes
Дата:
Сообщение: Aggregate not working as expected