Re: Proposal - Allow extensions to set a Plan Identifier

Поиск
Список
Период
Сортировка
От Ilia Evdokimov
Тема Re: Proposal - Allow extensions to set a Plan Identifier
Дата
Msg-id 4f32c878-34e2-4f4a-8575-bf343ba6e037@tantorlabs.com
обсуждение исходный текст
Ответ на Re: Proposal - Allow extensions to set a Plan Identifier  (Sami Imseih <samimseih@gmail.com>)
Ответы Re: Proposal - Allow extensions to set a Plan Identifier
Список pgsql-hackers
Hi,

Thank you for the patches. They're very important for many extensions.

I've debugged them using simple extensions pg_stat_statements and 
auto_explain, specifically checking cases involving PlannedStmt 
and pg_stat_get_activity - , and haven't encountered any issues so far.

However, I have a question: what value should planid have when we 
execute the standard planner without using a planner_hook? For example, 
if pg_stat_statementsis disabled, would planid default to zero? If zero 
is the expected default, should we explicitly write this behavior?

result->planid = 0;

--
Best regards,
Ilia Evdokimov,
Tantor Labs LLC.




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