Re: Adding a field in Path Structure and Plan Structure

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: Zichen Xu <xzckiller(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Adding a field in Path Structure and Plan Structure
Date: 2009-02-23 21:55:22
Message-ID: 603c8f070902231355v6e071a43k8af20305d462b3cb@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Feb 23, 2009 at 4:49 PM, Gregory Stark <stark(at)enterprisedb(dot)com> wrote:
> Robert Haas <robertmhaas(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2009-02-23 21:58:24 Re: Adding a field in Path Structure and Plan Structure
Previous Message Gregory Stark 2009-02-23 21:49:23 Re: Adding a field in Path Structure and Plan Structure