Re: fix prev link in docs

Ayush Tiwari <ayushtiwari.slg01@gmail.com>

From: Ayush Tiwari <ayushtiwari.slg01@gmail.com>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2026-06-12T20:44:26Z
Lists: pgsql-hackers
Hi,

On Thu, 11 Jun 2026 at 00:46, Nathan Bossart <nathandbossart@gmail.com>
wrote:

> Right now, if you go to the following page and click "Prev", it'll send you
> to the middle of the previous chapter:
>
>         https://www.postgresql.org/docs/devel/bgworker.html
>
> My research indicates that this might caused by a bug in libxml2, but
> regardless, a minimal fix is to change the link generation code to use
> [position()=last()] instead of [last()] in the predicate on the union of
> reverse axes.  Patch attached.
>

Thanks for the patch.

I tested it and with patch the Prev tab works fine towards 45.6.
(previous chapter's end)

Regards,
Ayush

Commits

  1. doc: Fix "Prev" link, take 2.

  2. doc: Fix "Prev" link.