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 1jCrmu-0007cn-JV for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Mar 2020 21:24:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jCrmt-0000KG-Db for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Mar 2020 21:24:11 +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 1jCrmt-0000K9-4r for pgsql-hackers@lists.postgresql.org; Fri, 13 Mar 2020 21:24:11 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jCrmp-0005Ub-Be for pgsql-hackers@postgresql.org; Fri, 13 Mar 2020 21:24:10 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 73E9E5E5; Fri, 13 Mar 2020 17:24:04 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 13 Mar 2020 17:24:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=XZRagSfANgY5IniunqNMmugrlUJW7x9ClmEsYo9An fs=; b=vn61a7PS5Y9IlPEZKfPTesWf2MZFGhZAiPqM1gk5W3h/iVsDWswNfkJlt L/NK4wp5cp+jaHdcvWXattnN4vhw8CCc2Qj+3haHJ5hT0iCfwQ8gGxX9dqFYhHZY f83ns8bNq+JHQtzILyKQMNm70abuMxlkzb2mdpGmRxFlOmvA0AoQtKBxTPTlLhYu 9ONo+ry7/XidbaEagQ0DApqIpZqspEsD2dTFFXrMUIfXBcTFLsE73fpTFTA15b5R 3+fu49IVuXZaziaT/IkRt7dbMSWAYwIWOYPzYscp28EQcshMV7P7HTNC+6N4y+uI wSENxN+eo5JvOKcHdpQSiCFbFBlxw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvjedgudegkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhfhokffffgggjggtgfesthejredttdefjeenucfhrhhomheprfgv thgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsedvnh guqhhurggurhgrnhhtrdgtohhmqeenucffohhmrghinhepvdhnughquhgrughrrghnthdr tghomhenucfkphepleefrddvgedvrddvudefrddvgedunecuvehluhhsthgvrhfuihiivg epudenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht sedvnhguqhhurggurhgrnhhtrdgtohhm X-ME-Proxy: Received: from april.pezone.net (p5df2d5f1.dip0.t-ipconnect.de [93.242.213.241]) by mail.messagingengine.com (Postfix) with ESMTPA id 570323061363; Fri, 13 Mar 2020 17:24:03 -0400 (EDT) Subject: Re: backend type in log_line_prefix? To: Alvaro Herrera References: <20200310180731.GA15183@alvherre.pgsql> Cc: pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Fri, 13 Mar 2020 22:24:02 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200310180731.GA15183@alvherre.pgsql> 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-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. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services