Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpHD1-0002Dx-9t for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Sep 2017 17:00:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dpHD0-0004PQ-SP for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Sep 2017 17:00:18 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dpHBU-0001e1-6D for pgsql-hackers@postgresql.org; Tue, 05 Sep 2017 16:58:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dpHBN-0003Z0-Ud for pgsql-hackers@postgresql.org; Tue, 05 Sep 2017 16:58:42 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v85Gwa4g004783; Tue, 5 Sep 2017 12:58:36 -0400 From: Tom Lane To: Robert Haas cc: Simon Riggs , "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Add psql variables showing server version and psql version. In-reply-to: References: <2774.1504628172@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Tue, 05 Sep 2017 12:29:41 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4781.1504630716.1@sss.pgh.pa.us> Date: Tue, 05 Sep 2017 12:58:36 -0400 Message-ID: <4782.1504630716@sss.pgh.pa.us> 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 Robert Haas writes: > On Tue, Sep 5, 2017 at 12:16 PM, Tom Lane wrote: >> Hm. I think it would be a fine idea to push this change into v10, >> so that all psql versions that have \if would have these variables. >> However, I'm less enthused about adding them to the 9.x branches. >> Given the lack of \if, I'm not seeing a use-case that would justify >> taking any compatibility risk for. >> >> Opinions anyone? > As I see it, the risks of back-patching are: > 1. Different minor versions will have different behavior, and that > tends to create more problems than it solves. Yeah. Whatever use-case you think might exist for these variables in, say, 9.6 is greatly weakened by the fact that releases through 9.6.5 don't have them. However, since v10 is still in beta I don't think that argument applies to it. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers