Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpfEL-0004hI-KC for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Sep 2017 18:39:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dpfEK-00028n-QD for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Sep 2017 18:39:16 +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 1dpfCo-0007oz-Oe for pgsql-hackers@postgresql.org; Wed, 06 Sep 2017 18:37:42 +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 1dpfCh-0007Pc-N6 for pgsql-hackers@postgresql.org; Wed, 06 Sep 2017 18:37: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 v86IbUH9031191; Wed, 6 Sep 2017 14:37:30 -0400 From: Tom Lane To: Fabien COELHO cc: Simon Riggs , Robert Haas , "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> <4782.1504630716@sss.pgh.pa.us> <18953.1504705115@sss.pgh.pa.us> <2597.1504714572@sss.pgh.pa.us> Comments: In-reply-to Fabien COELHO message dated "Wed, 06 Sep 2017 19:53:40 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31189.1504723050.1@sss.pgh.pa.us> Date: Wed, 06 Sep 2017 14:37:30 -0400 Message-ID: <31190.1504723050@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 Fabien COELHO writes: > Thus short, simple but meaningful examples which show how to do something > useful with all that in the documentation may help people take advantage > of these new features. I don't have an objection to providing an example. I wasn't terribly impressed with Simon's version, but maybe we can do better. I think it should be concrete, not partly abstract; and likely it needs to be with \if not the variable proper. > Given my experience with "\d*", I'm not sure I would assume that a new > psql feature would work with older servers. I don't recall anyone questioning whether PQserverVersion() would work with older servers. Being able to tell what version the server is is sort of the point, no? If there were a restriction on what it would work with, I would agree that that needs to be documented. But I don't think "yes, it really works" is a helpful use of documentation space. 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