Обсуждение: Debug contrib/cube code
Hi,<br />I am using postgresql-8.4.6. I want to debug the contrib/cube code. Can we able to debug that cube code? Becausethere is no .configure file to enable debug. Is there is any way to change make file to enable debug?<br /><br />Thanks
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, Suporte24x7 e Treinamento
Sorry i don't know about AFAICS.<br />Yes, i want to modify cube code for this i want to go in detail by debugging.<br />Canyou throw some light on how to debug contrib/cube code? <br /><br /><div class="gmail_quote">On Fri, May 6, 2011 at9:59 PM, Euler Taveira de Oliveira <span dir="ltr"><<a href="mailto:euler@timbira.com">euler@timbira.com</a>></span>wrote:<br /><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Em 06-05-2011 02:14, NickRaj escreveu:<div class="im"><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1pxsolid rgb(204, 204, 204); padding-left: 1ex;"> I am using postgresql-8.4.6. I want to debug the contrib/cube code. Can<br/> we able to debug that cube code? Because there is no .configure file<br /> to enable debug. Is there is any wayto change make file to enable debug?<br /><br /></blockquote></div> What do you want to debug? AFAICS you need to changethe code to achieve what you want.<br /><font color="#888888"><br /><br /> -- <br /> Euler Taveira de Oliveira - Timbira <a href="http://www.timbira.com.br/" target="_blank">http://www.timbira.com.br/</a><br /> PostgreSQL: Consultoria,Desenvolvimento, Suporte 24x7 e Treinamento<br /></font></blockquote></div><br />
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
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