ProcessUtility_hook - Mailing list pgsql-hackers

From Itagaki Takahiro
Subject ProcessUtility_hook
Date
Msg-id 20091020175652.37AF.52131E4D@oss.ntt.co.jp
Whole thread Raw
Responses Re: ProcessUtility_hook
List 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 by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Hot standby, pausing recovery
Next
From: Peter Eisentraut
Date:
Subject: Re: UTF8 with BOM support in psql