Re: psql show URL with help - Mailing list pgsql-hackers

From David Fetter
Subject Re: psql show URL with help
Date
Msg-id 20190303214833.GD10435@fetter.org
Whole thread Raw
In response to Re: psql show URL with help  (Magnus Hagander <magnus@hagander.net>)
Responses Re: psql show URL with help
List pgsql-hackers
On Sun, Mar 03, 2019 at 09:57:25PM +0100, Magnus Hagander wrote:
> On Sun, Mar 3, 2019 at 7:14 PM David Fetter <david@fetter.org> wrote:
> 
> > 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);
> >
> 
> We don't really release alphas any more. And we do load the documentation
> alongside the betas. (Last time we did an alpha was so long ago I don't
> remember if we loaded docs)

If the first thing we do when we move from devel to some other state
(beta, RC, etc.) is to publish the docs under the major version
number, then maybe this test should be more along the lines of looking
for anything that's neither devel nor a number, extract the number,
and use that.

Best,
David.
-- 
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: [HACKERS] SERIALIZABLE with parallel query
Next
From: Tom Lane
Date:
Subject: Re: Index-only scan is slower than Index scan.