Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 21A3A9FB46D for ; Wed, 1 Aug 2007 15:06:01 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 44409-02 for ; Wed, 1 Aug 2007 15:05:56 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 969F99FB34D for ; Wed, 1 Aug 2007 15:05:56 -0300 (ADT) Received: from perhan.alvh.no-ip.org ([190.95.0.211]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l71I5shS013945; Wed, 1 Aug 2007 11:05:55 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 0C2F947C4B; Wed, 1 Aug 2007 14:05:52 -0400 (CLT) Date: Wed, 1 Aug 2007 14:05:52 -0400 From: Alvaro Herrera To: Peter Koczan Cc: pgsql-admin Subject: Re: stracing a connection Message-ID: <20070801180551.GI10324@alvh.no-ip.org> References: <4544e0330708010950v464268edsf91d44b92bf55400@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4544e0330708010950v464268edsf91d44b92bf55400@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-11) X-Virus-Scanned: ClamAV 0.91.1/3846/Wed Aug 1 00:27:07 2007 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Wed, 01 Aug 2007 11:05:57 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/11 X-Sequence-Number: 26342 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.