Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 03FF364FD14 for ; Mon, 22 Dec 2008 09:36:22 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 15336-08 for ; Mon, 22 Dec 2008 09:36:14 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 221BB64FD08 for ; Mon, 22 Dec 2008 09:36:13 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id mBMDaAx3007118; Mon, 22 Dec 2008 08:36:11 -0500 (EST) To: Alvaro Herrera cc: Laszlo Nagy , pgsql-admin@postgresql.org Subject: Re: rebellious pg stats collector (reopened case) In-reply-to: <20081222132721.GC10220@alvh.no-ip.org> References: <49479876.8040607@shopzeus.com> <20081216134542.GH4741@alvh.no-ip.org> <494B614C.5060808@shopzeus.com> <20081219130446.GC4278@alvh.no-ip.org> <494F67D2.3090406@shopzeus.com> <6938.1229952228@sss.pgh.pa.us> <20081222132721.GC10220@alvh.no-ip.org> Comments: In-reply-to Alvaro Herrera message dated "Mon, 22 Dec 2008 10:27:21 -0300" Date: Mon, 22 Dec 2008 08:36:10 -0500 Message-ID: <7117.1229952970@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200812/176 X-Sequence-Number: 31009 Alvaro Herrera writes: > Tom Lane wrote: >> I wonder whether your tracing tool is affecting the result of >> getppid(). Most people would consider that a bug in the tracing tool. > Probably having a close look at the PPID column in ps or top during the > truss run would prove this. It's at least conceivable that the result being returned inside the process is different from what the rest of the world sees. What'd prove this one way or the other is to write a trivial test program along the lines of while(1) { sleep(1); printf("ppid = %d\n", getppid()); } and see if its output changes when you start to trace it. > Still, the actual problem being debugged is something else. Agreed, but we need to understand what the tools being used to investigate the problem are doing ... regards, tom lane