Re: Using fmgr_hook

Поиск
Список
Период
Сортировка
От Sameer Thakur
Тема Re: Using fmgr_hook
Дата
Msg-id CABzZFEuBW7YQ+_wj+H8xjdrDap_WPLfrkJz7=mJ-WTS+_+fwTw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Using fmgr_hook  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Список pgsql-general
Hello,
> Try like this:
> - connect with psql
> - call your custom_fmgr_hook
> - attach to the backend with gdb
> - set the breakpoint
> - call custom_fmgr_hook again

I tried to check in a different way, by just using log statements to
see if customs* hook functions ever get executed. They were not. So it
was not a breakpoint or debugger issue.
Then instead of using auto_explain, we created a user defined sysdate
function, implemented in C and added the fmgr hook code in there.
Now we see custom hook functions being called. So looks like it was
not a debugger issue, but fmgr hook work within user defined functions

Thank you,
Sameer


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

Предыдущее
От: Raghu Ram
Дата:
Сообщение: Re: POWA tool
Следующее
От: John McKown
Дата:
Сообщение: Re: POWA tool