From: | Sameer Thakur <samthakur74(at)gmail(dot)com> |
---|---|
To: | Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at> |
Cc: | Postgres General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Using fmgr_hook |
Date: | 2014-08-26 10:52:47 |
Message-ID: | CABzZFEuBW7YQ+_wj+H8xjdrDap_WPLfrkJz7=mJ-WTS+_+fwTw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | John McKown | 2014-08-26 11:26:08 | Re: POWA tool |
Previous Message | Raghu Ram | 2014-08-26 10:43:23 | Re: POWA tool |