Re: Make EXPLAIN generate a generic plan for a parameterized query

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Make EXPLAIN generate a generic plan for a parameterized query
Дата
Msg-id 1689348.1675435483@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Make EXPLAIN generate a generic plan for a parameterized query  (Laurenz Albe <laurenz.albe@cybertec.at>)
Ответы Re: Make EXPLAIN generate a generic plan for a parameterized query
Список pgsql-hackers
Laurenz Albe <laurenz.albe@cybertec.at> writes:
> I played around with it, and I ran into a problem with partitions that
> are foreign tables:
> ...
>   EXPLAIN (GENERIC_PLAN) SELECT * FROM looppart WHERE key = $1;
>   ERROR:  no value found for parameter 1

Hmm, offhand I'd say that something is doing something it has no
business doing when EXEC_FLAG_EXPLAIN_ONLY is set (that is, premature
evaluation of an expression).  I wonder whether this failure is
reachable without this patch.

            regards, tom lane



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

Предыдущее
От: Justin Pryzby
Дата:
Сообщение: Re: CI and test improvements
Следующее
От: Pavel Stehule
Дата:
Сообщение: proposal: psql: show current user in prompt