Re: Hooks Docu - list of hooks

Поиск
Список
Период
Сортировка
От Abhijit Menon-Sen
Тема Re: Hooks Docu - list of hooks
Дата
Msg-id 20140624105946.GM31357@toroid.org
обсуждение исходный текст
Ответ на Hooks Docu - list of hooks  (geohas <lists@hasibether.at>)
Ответы Re: Hooks Docu - list of hooks
Список pgsql-hackers
At 2014-06-24 12:49:17 +0200, lists@hasibether.at wrote:
>
> Is there a list of possible hooks, or maybe a little docu or overview?

The best I found was "git grep _hook_type" and then read the code to
understand when and why the hook was called.

> Especially hooks to catch Insert, Update and Delete Stmts and
> SubQuerys.
> 
> It would help a lot to finish / write a log into Tables Module.

Look at how pgaudit does it: https://github.com/2ndQuadrant/pgaudit

The code has comments about how the various available hooks are used.
(I was planning to implement a bgwriter that wrote log messages to a
table, which sounds a bit like what you want to do.)

-- Abhijit



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

Предыдущее
От: "MauMau"
Дата:
Сообщение: Re: PostgreSQL in Windows console and Ctrl-C
Следующее
От: geohas
Дата:
Сообщение: Re: Hooks Docu - list of hooks