From: Alvaro Herrera <alvherre@commandprompt.com>
To: Peter Koczan <pjkoczan@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: stracing a connection
Date: Wed, 1 Aug 2007 14:05:52 -0400
Message-ID: <20070801180551.GI10324@alvh.no-ip.org> (raw)
In-Reply-To: <4544e0330708010950v464268edsf91d44b92bf55400@mail.gmail.com>
References: <4544e0330708010950v464268edsf91d44b92bf55400@mail.gmail.com>
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.
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
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: alvherre@commandprompt.com, pjkoczan@gmail.com
Subject: Re: stracing a connection
In-Reply-To: <20070801180551.GI10324@alvh.no-ip.org>
* 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