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 1kFLQF-0004UA-7e for pgsql-committers@arkaria.postgresql.org; Mon, 07 Sep 2020 17:59:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kFLPi-0000Do-Fh for pgsql-committers@arkaria.postgresql.org; Mon, 07 Sep 2020 17:58:46 +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 1kFLPi-0000De-AD for pgsql-committers@lists.postgresql.org; Mon, 07 Sep 2020 17:58:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFLPf-00054H-Jx for pgsql-committers@lists.postgresql.org; Mon, 07 Sep 2020 17:58:45 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 087HweZd1700044; Mon, 7 Sep 2020 13:58:40 -0400 From: Tom Lane To: Alvaro Herrera cc: Pavel Stehule , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Refactor pg_get_line() to expose an alternative StringInfo-based In-reply-to: <20200907173438.GA10427@alvherre.pgsql> References: <20200907173438.GA10427@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Mon, 07 Sep 2020 14:34:38 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1700042.1599501520.1@sss.pgh.pa.us> Date: Mon, 07 Sep 2020 13:58:40 -0400 Message-ID: <1700043.1599501520@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2020-Sep-07, Tom Lane wrote: >> If there were something to be on the warpath about, it's that initdb >> is pulling in such an obviously backend-only header as that. I wonder >> if we should refactor to fix that. > Hmm, if we wanted to clean things up I think we should look at what > other things from xlog_internal.h are being used by other frontend > programs; Yeah, I was thinking along the same lines, but hadn't done the legwork to see what else is needed by frontend code. regards, tom lane