Partitions are not excluded in stored procedures

Поиск
Список
Период
Сортировка
От Ioannis Anagnostopoulos
Тема Partitions are not excluded in stored procedures
Дата
Msg-id 4FCE2C26.7000503@anatec.com
обсуждение исходный текст
Ответы Re: Partitions are not excluded in stored procedures  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
Hi there,

I came across the following problem. Say I have a select query that
given the appropriate where clauses it will only query the correct
partitioned tables and not all of them.  That can be examined by using
the EXPLAIN. However the same select query used in a stored procedure
will transverse all the tables regardless of the where clause parameters
passed by the user as variables of the stored procedure . Is there any
work around other than composing an EXECUTE "select ....."?

Kind Regards
Yiannis


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

Предыдущее
От: Antonio Carlos Salzvedel Furtado Junior
Дата:
Сообщение: Re: Changing tuning parameters with EXPLAIN
Следующее
От: "Della-Croce, Gregory"
Дата:
Сообщение: Why would Postgres not show in my data connections?