pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Koczan <pjkoczan@gmail.com>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: stracing a connection
Date: Wed, 01 Aug 2007 19:34:15 -0500
Message-ID: <46B12687.7090607@gmail.com> (raw)
In-Reply-To: <20070801180551.GI10324@alvh.no-ip.org>
References: <4544e0330708010950v464268edsf91d44b92bf55400@mail.gmail.com>
	<20070801180551.GI10324@alvh.no-ip.org>

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.
>
>   




view thread (4+ messages)

Message-ID: <46B12687.7090607@gmail.com>
Permalink:  ../46B12687.7090607@gmail.com/
Also on:    postgresql.org/message-id/46B12687.7090607@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: pjkoczan@gmail.com, alvherre@commandprompt.com
  Subject: Re: stracing a connection
  In-Reply-To: <46B12687.7090607@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox