Re: Best way to monitor, control, or rewrite data definition commands?

Поиск
Список
Период
Сортировка
От John DeSoi
Тема Re: Best way to monitor, control, or rewrite data definition commands?
Дата
Msg-id AA7439E2-773B-4F48-8A4B-6C8F274FAB46@pgedit.com
обсуждение исходный текст
Ответ на Best way to monitor, control, or rewrite data definition commands?  ("Turner, Ian" <Ian.Turner@deshaw.com>)
Список pgsql-general
On May 12, 2009, at 7:59 PM, Turner, Ian wrote:

> CREATE TABLE foo (fooid integer);
>
> Then I would also like to do
>
> CREATE TABLE foo_audit (fooid integer, <other columns>);
>
> along with the creation of some other triggers, rules, etc.
>
> Is there any way to be notified when a user executes data definition
> commands such as CREATE TABLE? It doesn't appear possible to apply
> triggers or rules to the system tables, and the query rewrite engine
> only seems to apply to SELECT, INSERT, and UPDATE. Thoughts?


Correct, there are no triggers on the system tables.

Maybe some type of cron process that ensures there is foo_audit for
table foo?


John DeSoi, Ph.D.





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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: Best way to monitor, control, or rewrite data definition commands?
Следующее
От: Henry
Дата:
Сообщение: Re: Cannot login for short period of time