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.92) (envelope-from ) id 1jDg3D-0007cN-49 for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Mar 2020 03:04:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jDg3B-0004N9-L3 for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Mar 2020 03:04:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jDg3B-0004Lo-8b for pgsql-hackers@lists.postgresql.org; Mon, 16 Mar 2020 03:04:21 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jDg34-0003ns-PM for pgsql-hackers@postgresql.org; Mon, 16 Mar 2020 03:04:20 +0000 Received: from hnk.local (sp49-97-94-94.msc.spmode.ne.jp [49.97.94.94]) by oss.nttdata.com (Postfix) with ESMTPSA id 3710F60327; Mon, 16 Mar 2020 12:04:11 +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: Peter Eisentraut , Alvaro Herrera Cc: pgsql-hackers References: <20200310180731.GA15183@alvherre.pgsql> <5d8f84b8-fc8d-0cb3-e887-32f7c7102c1b@2ndquadrant.com> From: Fujii Masao Message-ID: <750adb5e-03c2-7e97-45a3-14874ff64d1b@oss.nttdata.com> Date: Mon, 16 Mar 2020 12:04:10 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <5d8f84b8-fc8d-0cb3-e887-32f7c7102c1b@2ndquadrant.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020/03/15 19:32, Peter Eisentraut wrote: > On 2020-03-13 22:24, Peter Eisentraut wrote: >> On 2020-03-10 19:07, Alvaro Herrera wrote: >>> I like these patches; the first two are nice cleanup. >>> >>> My only gripe is that pgstat_get_backend_desc() is not really a pgstat >>> function; I think it should have a different name with a prototype in >>> miscadmin.h (next to the enum's new location, which I would put >>> someplace near the "pmod.h" comment rather than where you put it; >>> perhaps just above the AuxProcType definition), and implementation >>> probably in miscinit.c. >> >> I have committed the refactoring patches with adjustments along these >> lines.  The patch with the log_line_prefix and csvlog enhancements is >> still under discussion. > > I have committed that last one also, after some corrections. Thanks for adding this nice feature! I have one comment; You seem to need to update file-fdw.sgml so that pglog table in the doc should include backend_type column. Regards, -- Fujii Masao NTT DATA CORPORATION Advanced Platform Technology Group Research and Development Headquarters