Re: Debugging custom type libraries - Mailing list pgsql-general

From Tom Lane
Subject Re: Debugging custom type libraries
Date
Msg-id 19275.1234988540@sss.pgh.pa.us
Whole thread Raw
In response to Re: Debugging custom type libraries  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
Martijn van Oosterhout <kleptog@svana.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

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: COPY questions
Next
From: Tom Lane
Date:
Subject: Re: Appending \o output instead of overwriting the output file