Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1douhb-0004FN-95 for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Sep 2017 16:58:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1douha-0005E6-N7 for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Sep 2017 16:58:22 +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 1doug2-0001DD-Jt for pgsql-hackers@postgresql.org; Mon, 04 Sep 2017 16:56:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1doufr-0000Hd-AC for pgsql-hackers@postgresql.org; Mon, 04 Sep 2017 16:56:46 +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 v84GuSow004173; Mon, 4 Sep 2017 12:56:29 -0400 From: Tom Lane To: Fabien COELHO cc: Robert Haas , Pavel Stehule , Corey Huinker , Daniel Verite , PostgreSQL Developers Subject: Re: Variable substitution in psql backtick expansion In-reply-to: <2947.1504542679@sss.pgh.pa.us> References: <3926.1491159242@sss.pgh.pa.us> <13303.1503698976@sss.pgh.pa.us> <14596.1503701034@sss.pgh.pa.us> <20786.1503760136@sss.pgh.pa.us> <24850.1503766425@sss.pgh.pa.us> <4959.1503774468@sss.pgh.pa.us> ! <2947.1504542679@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 04 Sep 2017 12:31:19 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4171.1504544188.1@sss.pgh.pa.us> Date: Mon, 04 Sep 2017 12:56:28 -0400 Message-ID: <4172.1504544188@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 I wrote: > ... Or maybe we should shorten this > variable name so it doesn't force reformatting of all this text. > Possible ideas include "DB_VERSION_NAME", "SERVER_VER_NAME", or > "SERVER_VERSION_STR". (The last saves only one character, whereas > we really need to save two if we're trying not to be wider than any > other documented variable.) Just had another idea: maybe make the new variable names SERVER_VERSION_S SERVER_VERSION_N VERSION_S VERSION_N "_S" could usefully be read as either "string" or "short", and probably we should document it as meaning "short". This way avoids creating any weird inconsistencies with the existing precedent of the VERSION variable. 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