Re: ProcessUtility_hook

From: Euler Taveira de Oliveira <euler(at)timbira(dot)com>
To: Itagaki Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: ProcessUtility_hook
Date: 2009-10-20 10:58:40
Message-ID: 4ADD97E0.9000901@timbira.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Itagaki Takahiro escreveu:
> 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?
>
+1. Hey, I was thinking about that yesterday. ;)

> 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.
>
I don't look at the code but maybe there is a way to hook something there too.
But I'd leave it alone for now, unless it's few lines of code.

--
Euler Taveira de Oliveira
http://www.timbira.com/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Page 2009-10-20 12:42:23 Re: Client application name
Previous Message Peter Eisentraut 2009-10-20 09:54:41 Re: UTF8 with BOM support in psql