Debug contrib/cube code
Debug contrib/cube code
От:
Nick Raj <nickrajjain@gmail.com>
Дата:
Hi,
I am using postgresql-8.4.6. I want to debug the contrib/cube code. Can we able to debug that cube code? Because there is no .configure file to enable debug. Is there is any way to change make file to enable debug?
Thanks
Re: Debug contrib/cube code
От:
Euler Taveira de Oliveira <euler@timbira.com>
Дата:
Em 06-05-2011 02:14, Nick Raj escreveu: > I am using postgresql-8.4.6. I want to debug the contrib/cube code. Can > we able to debug that cube code? Because there is no .configure file > to enable debug. Is there is any way to change make file to enable debug? > What do you want to debug? AFAICS you need to change the code to achieve what you want. -- Euler Taveira de Oliveira - Timbira http://www.timbira.com.br/ PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento
Re: Debug contrib/cube code
От:
Nick Raj <nickrajjain@gmail.com>
Дата:
Sorry i don't know about AFAICS.
Yes, i want to modify cube code for this i want to go in detail by debugging.
Can you throw some light on how to debug contrib/cube code?
Yes, i want to modify cube code for this i want to go in detail by debugging.
Can you throw some light on how to debug contrib/cube code?
On Fri, May 6, 2011 at 9:59 PM, Euler Taveira de Oliveira <euler@timbira.com> wrote:
Em 06-05-2011 02:14, Nick Raj escreveu:What do you want to debug? AFAICS you need to change the code to achieve what you want.I am using postgresql-8.4.6. I want to debug the contrib/cube code. Can
we able to debug that cube code? Because there is no .configure file
to enable debug. Is there is any way to change make file to enable debug?
--
Euler Taveira de Oliveira - Timbira http://www.timbira.com.br/
PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento
Re: Debug contrib/cube code
От:
Robert Haas <robertmhaas@gmail.com>
Дата:
On Fri, May 13, 2011 at 12:12 PM, Nick Raj wrote: > Sorry i don't know about AFAICS. > Yes, i want to modify cube code for this i want to go in detail by > debugging. > Can you throw some light on how to debug contrib/cube code? "AFAICS" is short for "as far as I can see". On my system, if I configure --enable-debug, the contrib modules are compiled with debug support as well. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Re: Debug contrib/cube code
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Robert Haas writes: > On Fri, May 13, 2011 at 12:12 PM, Nick Raj wrote: >> Can you throw some light on how to debug contrib/cube code? > On my system, if I configure --enable-debug, the contrib modules are > compiled with debug support as well. Depending on what platform you're using, it may be hard to get breakpoints in dynamically loaded modules to work. On many platforms it helps to make sure that the module is loaded before you attach to the backend process with gdb. To do that, you can either call one of its functions, or just do a manual LOAD command. regards, tom lane