Re: [PATCHES] WIP: executor_hook for pg_stat_statements

Поиск
Список
Период
Сортировка
От ITAGAKI Takahiro
Тема Re: [PATCHES] WIP: executor_hook for pg_stat_statements
Дата
Msg-id 20080707104202.73E5.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответы Re: [PATCHES] WIP: executor_hook for pg_stat_statements  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-hackers
Simon Riggs <simon@2ndquadrant.com> wrote:

> > The attached patch (executor_hook.patch) modifies HEAD as follows.
> > 
> > - Add "tag" field (uint32) into PlannedStmt.
> > - Add executor_hook to replace ExecutePlan().
> > - Move ExecutePlan() to a global function.
> 
> The executor_hook.patch is fairly trivial and I see no errors.
> 
> The logic of including such a patch is clear. If we have a planner hook
> then we should also have an executor hook.

One issue is "tag" field. The type is now uint32. It's enough in my plugin,
but if some people need to add more complex structures in PlannedStmt,
Node type would be better rather than uint32. Which is better?


> Will you be completing the plugin for use in contrib?

Yes, I'll fix memory management in my plugin and re-post it
by the next commit-fest.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center




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

Предыдущее
От: ITAGAKI Takahiro
Дата:
Сообщение: Re: Sorting writes during checkpoint
Следующее
От:
Дата:
Сообщение: pg_ctl -w with postgresql.conf in non-default path