Debug contrib/cube code

Started by Nick Rajover 14 years ago5 messages
#1Nick 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

In reply to: Nick Raj (#1)
Re: Debug contrib/cube code

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

#3Nick Raj
nickrajjain@gmail.com
In reply to: Euler Taveira de Oliveira (#2)
Re: Debug contrib/cube code

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?

On Fri, May 6, 2011 at 9:59 PM, Euler Taveira de Oliveira <euler@timbira.com

Show quoted text

wrote:

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

#4Robert Haas
robertmhaas@gmail.com
In reply to: Nick Raj (#3)
Re: Debug contrib/cube code

On Fri, May 13, 2011 at 12:12 PM, Nick Raj <nickrajjain@gmail.com> 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

#5Tom Lane
tgl@sss.pgh.pa.us
In reply to: Robert Haas (#4)
Re: Debug contrib/cube code

Robert Haas <robertmhaas@gmail.com> writes:

On Fri, May 13, 2011 at 12:12 PM, Nick Raj <nickrajjain@gmail.com> 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