Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d25qv-00081g-1F for pgsql-hackers@arkaria.postgresql.org; Sun, 23 Apr 2017 00:58:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d25qu-0003U1-2i for pgsql-hackers@arkaria.postgresql.org; Sun, 23 Apr 2017 00:58:12 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d25pO-0000nw-G7 for pgsql-hackers@postgresql.org; Sun, 23 Apr 2017 00:56:38 +0000 Received: from mail-qt0-x236.google.com ([2607:f8b0:400d:c0d::236]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1d25pH-0003vI-Nl for pgsql-hackers@postgresql.org; Sun, 23 Apr 2017 00:56:35 +0000 Received: by mail-qt0-x236.google.com with SMTP id y33so92497096qta.2 for ; Sat, 22 Apr 2017 17:56:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=3nCNRJAII9FLSWfMpo7yT1Rh16lIwtup0VFjzeSaukQ=; b=YX8LpQJQeQFTRJWLMjvaLcDd0KZxGxgScCUlpG9gBRgV0HqJi4YyB1DrRf7zGXT7Do WggjIWIr0Nmlu0s6PCXfDVa5LkKQmnjxh6Pl7dEBgLYE3EVRINjxURGHRexC7OgEvSj6 H/z2ldrV1wXHVcPilnIxUva70JlGLrIwu+pGH/F3CYmxf68oXcZ3hzfEJllA60WhDpEN 5yAya63TOYp5Y0RgUT0+n7CNyB88/RSsuLdYWAQcaK5bLn1Qq5E3yLJiPjn88RMO6iOQ UFUOLXG0UNRcuD/dCPYCzKts3Ef+HLS6EGSSA2pG23rXP9VZ35y2WPHwjWCoeUoo/2F0 0X5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=3nCNRJAII9FLSWfMpo7yT1Rh16lIwtup0VFjzeSaukQ=; b=Zyfyu/QUVF0ziAJen9gi6e+rt3Z2/vgGBPkgZfP9kJ0bwAdrBOACrSGmsrlGYzMkYC sZF4DADtv4kZuxRuesEt7R8Vloe0zORTfB9JBbw91rhdK7KD9BY2QtNHaHcOiCSpJCf6 e6lX9tXjdWa6xMOztq9ChUgE1FIg65vBamvf8P0EPMqhGMCxrxcmR1MMzWNke8vEY+Mj e4F8S0W2wVnCr6g01Ds+jiuvIa1lp26g+BHuRtZnGeFwEMYtfFocx13OpOspeNV32wLR ux3tVHBlY18OvOQUP7TGjE/CBcT0toc70K/XDbxmUYpSTM7V7FrrmuJEFHBWC/u83ocZ flNw== X-Gm-Message-State: AN3rC/43YxD4RilIvxXp9qtFAcK6UeVqeLl2MNEpQM1YgUoVlL36P9Pr EfUA2zX17lBhxGBtb1q3/devBSRhHugfxQCtT/2fjigCeBAihebkxSQjaFxF78nwJF73pxdWhVT pAduIBboFyGsvEPqAshw+rNLXDyJUjvtDqFzfYFMKIVvw5WQEk+f5mptPfUPUPMOC4envpmFKsO Q= X-Received: by 10.200.49.207 with SMTP id i15mr19509323qte.137.1492908989631; Sat, 22 Apr 2017 17:56:29 -0700 (PDT) Received: from [192.168.10.146] ([98.122.164.227]) by smtp.gmail.com with ESMTPSA id 55sm9704533qtt.12.2017.04.22.17.56.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Apr 2017 17:56:29 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: PostgresNode::append_conf considered dangerous To: Tom Lane , pgsql-hackers@postgreSQL.org References: <19751.1492892376@sss.pgh.pa.us> Message-ID: Date: Sat, 22 Apr 2017 20:56:28 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <19751.1492892376@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 04/22/2017 04:19 PM, Tom Lane wrote: > > I think instead we should change append_conf to append a newline, and > simplify the callers that could thereby be simplified. I don't see > any callers that would be broken by that; and we do not have any config > files in which extra blank lines are problematic. > > +1. Not sure how we survived so long with it the way it is. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers