Re: stracing a connection

From: Peter Koczan <pjkoczan(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: stracing a connection
Date: 2007-08-02 00:34:15
Message-ID: 46B12687.7090607@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thank you Alvaro, it worked.

I got confused when I did it before since gdb couldn't figure out half
of the elements in the backtrace, and strace kept saying "I can't
attach", which was only because gdb was already attached to that same
process.

Peter

Alvaro Herrera wrote:
> Peter Koczan escribió:
>
>> Hi all,
>>
>> I'm running into a few problems with postgres connections, specifically
>> notify/listening connections. What program(s) should I attach to the
>> connection using gdb or strace in order to actually get some useful data?
>>
>> i.e. I'll be using something like "strace -p [pid] [command]", what should I
>> use for [command]?
>>
>
> strace -p pid
> gdb -p pid
>
> You don't need to specify the command at all.
>
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message David Bear 2007-08-02 05:11:01 incrementals with pg-dump
Previous Message Benjamin Krajmalnik 2007-08-01 19:44:36 Re: Deadlock