ProcessUtility_hook

Поиск
Список
Период
Сортировка
От Itagaki Takahiro
Тема ProcessUtility_hook
Дата
Msg-id 20091020175652.37AF.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответы Re: ProcessUtility_hook  (Euler Taveira de Oliveira <euler@timbira.com>)
Список pgsql-hackers
We can hook SELECT, INSERT, UPDATE and DELETE with ExecutorXxx_hooks,
but there is no way to hook DDL commands. Can I submit a patch to add
ProcessUtility_hook?

pg_stat_statements module also handle DDL commands as same as normal
queries. Fortunately, autovacuum calls call vacuum() directly,
so the statistics will not filled with VACUUM and ANALYZE commands
by autovacuum.


There might be another usage for the hook. Since we can filter all
SQL commands using ExecutorRun_hook and ProcessUtility_hook, so we
could write query text for database audit with programmable filter
in the hooks.

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



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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Hot standby, pausing recovery
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: UTF8 with BOM support in psql