Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h0VdP-00019A-Pt for pgsql-hackers@arkaria.postgresql.org; Sun, 03 Mar 2019 18:14:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h0VdO-0008Pm-9U for pgsql-hackers@arkaria.postgresql.org; Sun, 03 Mar 2019 18:14:46 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1h0VdO-0008Pf-23 for pgsql-hackers@lists.postgresql.org; Sun, 03 Mar 2019 18:14:46 +0000 Received: from xvm-110-146.dc2.ghst.net ([46.226.110.146] helo=fetter.org) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h0VdL-0003gj-7a for pgsql-hackers@postgresql.org; Sun, 03 Mar 2019 18:14:45 +0000 Received: by fetter.org (Postfix, from userid 1001) id AC5BE402AD; Sun, 3 Mar 2019 19:14:32 +0100 (CET) Date: Sun, 3 Mar 2019 19:14:32 +0100 From: David Fetter To: Peter Eisentraut Cc: pgsql-hackers Subject: Re: psql show URL with help Message-ID: <20190303181432.GA316@fetter.org> References: <40179bd0-fa7d-4108-1991-a20ae9ad5667@2ndquadrant.com> <47e071fd-8997-f036-b383-4d80c184adeb@2ndquadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Feb 27, 2019 at 09:14:59AM +0100, Peter Eisentraut wrote: > + url = psprintf("https://www.postgresql.org/docs/%s/%s.html", > + strstr(PG_VERSION, "devel") ? "devel" : PG_MAJORVERSION, > + QL_HELP[i].docbook_id); Do we need to make sure that the docs are published under the major version as soon as we get to alpha, or do we need something more like this? url = psprintf("https://www.postgresql.org/docs/%s/%s.html", (strstr(PG_VERSION, "devel") || strstr(PG_VERSION, "beta") || strstr(PG_VERSION, "alpha")) : "devel" : PG_MAJORVERSION, QL_HELP[i].docbook_id); Best, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate