Re: Adding a field in Path Structure and Plan Structure - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Adding a field in Path Structure and Plan Structure
Date
Msg-id 603c8f070902231355v6e071a43k8af20305d462b3cb@mail.gmail.com
Whole thread Raw
In response to Re: Adding a field in Path Structure and Plan Structure  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
On Mon, Feb 23, 2009 at 4:49 PM, Gregory Stark <stark@enterprisedb.com> wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
>
>> Attach to the backend with gdb.  Then you can get a backtrace, esp. if
>> you've built with --enable-debug.
>>
>> It may be helpful to use lsof to figure out which backend your psql
>> session is connected to.
>
> select backend_pid();
>
> is pretty handy for this. Though if you have the backend crashing on every
> plan it may not help...

pg_backend_pid()

...Robert


pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: Adding a field in Path Structure and Plan Structure
Next
From: Andrew Dunstan
Date:
Subject: Re: Adding a field in Path Structure and Plan Structure