Re: Debugging custom type libraries

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: Will Harrower <wjh105(at)doc(dot)ic(dot)ac(dot)uk>, pgsql-general(at)postgresql(dot)org
Subject: Re: Debugging custom type libraries
Date: 2009-02-18 20:22:20
Message-ID: 19275.1234988540@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> First step, you must connect with psql and then attach gdb to the
> running process (there's a function to get the pid of your backend).
> Next, you can use "LOAD foo" in psql to trigger the loading of your
> module, gdb should then be able to see it (assuming you have debug
> symbols everywhere).

On some platforms it's necessary to do the LOAD first (before attaching
with gdb). Experiment...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-02-18 20:36:13 Re: Appending \o output instead of overwriting the output file
Previous Message Adrian Klaver 2009-02-18 20:14:47 Re: COPY questions