Re: debugging the server[ module causes server cash]

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: dave(dot)potts(at)pinan(dot)co(dot)uk
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: debugging the server[ module causes server cash]
Date: 2012-02-04 17:58:21
Message-ID: 11852.1328378301@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dave Potts <dave(dot)potts(at)pinan(dot)co(dot)uk> writes:
> I have just inherited a private C module that lives in the context of
> the server with little or no documentation.

> It crashes taking the database down, is there any advice on how to
> debug this type of beast ?

It isn't a lot different from debugging code that's part of the core
server. You might start with the advice here:
http://wiki.postgresql.org/wiki/Getting_a_stack_trace_of_a_running_PostgreSQL_backend_on_Linux/BSD
(there's a neighboring page for Windows, too)

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2012-02-04 18:31:25 Re: Why this regexp matches?!
Previous Message David Johnston 2012-02-04 16:28:50 Re: Why this regexp matches?!