Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lI742-00088j-Uj for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Mar 2021 09:48:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lI73y-0004Pd-7J for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Mar 2021 09:48:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lI73y-0004PW-1K for pgsql-hackers@lists.postgresql.org; Fri, 05 Mar 2021 09:48:02 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lI73t-00078C-HO for pgsql-hackers@lists.postgresql.org; Fri, 05 Mar 2021 09:48:00 +0000 Received: from oss.nttdata.com (localhost [127.0.0.1]) by oss.nttdata.com (Postfix) with ESMTP id 06C13602FD; Fri, 5 Mar 2021 18:47:52 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.3 at oss.nttdata.com MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 05 Mar 2021 18:47:52 +0900 From: torikoshia To: Bharath Rupireddy Cc: vignesh C , Andres Freund , Tom Lane , Craig Ringer , Robert Haas , Peter Eisentraut , PostgreSQL Hackers Subject: Re: Printing backtrace of postgres processes In-Reply-To: References: <20210115201011.noomcygirzge43ir@alap3.anarazel.de> <3537.1610828491@sss.pgh.pa.us> <492025.1611078655@sss.pgh.pa.us> <523589.1611091371@sss.pgh.pa.us> <799340.1611194209@sss.pgh.pa.us> <20210127170958.vzo33jzmqwhmn7z6@alap3.anarazel.de> <979ee93ab2e5d7d51836ced0c38b445c@oss.nttdata.com> Message-ID: <93324693b1ac21e4e1b7d4ed40ea3447@oss.nttdata.com> X-Sender: torikoshia@oss.nttdata.com User-Agent: Roundcube Webmail/1.1.9 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-03-04 21:55, Bharath Rupireddy wrote: > On Mon, Mar 1, 2021 at 10:43 AM torikoshia > wrote: >> Since the current patch use BackendPidGetProc(), it does not >> support this feature not only postmaster, logging, and >> statistics but also checkpointer, background writer, and >> walwriter. >> >> And when I specify pid of these PostgreSQL processes, it >> says "PID xxxx is not a PostgreSQL server process". >> >> I think it may confuse users, so it might be worth >> changing messages for those PostgreSQL processes. >> AuxiliaryPidGetProc() may help to do it. > > Exactly this was the doubt I got when I initially reviewed this patch. > And I felt it should be discussed in a separate thread, you may want > to update your thoughts there [1]. > > [1] - > https://www.postgresql.org/message-id/CALj2ACW7Rr-R7mBcBQiXWPp%3DJV5chajjTdudLiF5YcpW-BmHhg%40mail.gmail.com Thanks! I'm going to join the discussion there. Regards, -- Atsushi Torikoshi NTT DATA CORPORATION