Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j2B38-000254-BS for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Feb 2020 09:44:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j2B29-0001EN-3j for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Feb 2020 09:43:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j2B28-0001Cp-RI for pgsql-hackers@lists.postgresql.org; Thu, 13 Feb 2020 09:43:44 +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 1j2B25-0002eB-BO for pgsql-hackers@postgresql.org; Thu, 13 Feb 2020 09:43:44 +0000 Received: from hnk.local (sp49-97-94-18.msc.spmode.ne.jp [49.97.94.18]) by oss.nttdata.com (Postfix) with ESMTPSA id 24DD160530; Thu, 13 Feb 2020 18:43:33 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.101.5 at oss.nttdata.com Subject: Re: backend type in log_line_prefix? To: Julien Rouhaud , Peter Eisentraut Cc: pgsql-hackers References: <20200213091428.GA15600@nol> From: Fujii Masao Message-ID: Date: Thu, 13 Feb 2020 18:43:32 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <20200213091428.GA15600@nol> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020/02/13 18:14, Julien Rouhaud wrote: > On Thu, Feb 13, 2020 at 09:56:38AM +0100, Peter Eisentraut wrote: >> Attached is a demo patch that adds a placeholder %b for log_line_prefix (not >> in the default setting) that contains the backend type, the same that you >> see in pg_stat_activity and in the ps status. I would have found this >> occasionally useful when analyzing logs, especially if you have a lot of >> background workers active. Thoughts? If we do this, backend type should be also included in csvlog? Regarding the patch, postgresql.conf.sample needs to be updated. Regards, -- Fujii Masao NTT DATA CORPORATION Advanced Platform Technology Group Research and Development Headquarters