Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wXOPa-003Epc-0G for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Jun 2026 19:16:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wXOPY-00CgOD-2e for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Jun 2026 19:16:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wXOPY-00CgO5-1X for pgsql-hackers@lists.postgresql.org; Wed, 10 Jun 2026 19:16:24 +0000 Received: from mail-oa1-x2f.google.com ([2001:4860:4864:20::2f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wXOPW-00000002NzH-0Ofv for pgsql-hackers@postgresql.org; Wed, 10 Jun 2026 19:16:24 +0000 Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-43d26679a6aso4872744fac.2 for ; Wed, 10 Jun 2026 12:16:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781118980; x=1781723780; darn=postgresql.org; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=qlOrcdLwLQy10Q7brMOlNBKDaLU23qvI5qdBXYsYqLQ=; b=exLMtxbkSff4bsfVShPupaff62VYK4SWijbLEsxulykSoHxaw1TZR5kjNGmRs09aZL M9BljNNN7YKg6xd54XCnzALH4XcyizJw6wFe/sV3d95UQQ5hQtM5RhiXnj49Hkx9SnCY 1mu6de1gHwlk2ZVkjgaQ8DVyD2iQDStq56Asn/E4/NYT677B10uPWrj/rzkyiIeUg4Ev QIAMn4lNJkJSZ9CnqyKHWBfAH13er5bH8UNYupIUl1Wb/l+KyFQQQKr198fZVxLxmuLt YYMlVYmAMfowX5pBWsPimjdQOqR8CxT7VSWYEsYL+xQoTOZ/B2LXSjUUqh1fvLQhEgsy Vd9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781118980; x=1781723780; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qlOrcdLwLQy10Q7brMOlNBKDaLU23qvI5qdBXYsYqLQ=; b=e5PwNUIIiDkykDiOVTYBqEo3196qatFeNINy/yWDFHDSc+pTuJlILcNi19EfMxxzu4 N09r6tG6DdQmfzmgJuOjJHN+0cfwVKnjNsdCGFoOAXaT92fMXDN80WpzY8wRmPQ0ni6f eJmi+/M80PBqdhX4rn8jhJ6kU0H7d+2x2PRE6GIZd/eq+cpnFUHRvjK/z/e17sFOhQEX ykdewicfj532PLIVmFa7ZdF5J89YNe6XN+DUO3VuyYVSh7IOp8baY3LcfBlU0WyMn+/A AFCx9QW5mpdhvk3Vw3GIhCN7TqXKVil4HlZVxR21KdDPVDlaNEPDyAwBKFx2JmyLd9PZ mFdw== X-Gm-Message-State: AOJu0Yx4kkVokkcQfbn38EBkLABnsxFgP/JAjeD3x3vPiTkFmfYYw2sw F2QtKNEdR5CcaMI0lfjYhvpyUiKVN+CMS2WvnkSbwjDLzDvnPJP522JKc4VOTA== X-Gm-Gg: Acq92OH2sHaojfvXr44CYpkUNYp0BwfSaFnaa4MAfjI+tCXvhRfDuBz4Dpb3PptgqfO Uj9B2Rskvn6v+zczPNnyWRlECrob4MCfNwcNxIs2Rc3kdmpdvRtZDh0wXh6S/H4qMgwJHqc0yHx yP4u2RRa5sYVUpaHaYl28yGoVialKfwqdP77FP6Sc5vnzGuzWPiTNaJ0LrFIXyO4r4+qEaKzkIE 8XiuCqo162XP659XmzXoPd1UP2hlsynjXIf6/QpM3Wdos1BHj3B7eiMEceq9ZjGTstM5IKTCI2U 5jjqqdxcNP3ORgZXmdaGHwyKm30emeM5YNqBY14gwEZbVQlnomWWmbwcbT0SOlUEdNOFxCYXNn3 yu8xVRATq1oByE5r2QJEFc2uKSmh1FpA7mZfO7Gb+ERPiG6L5hVRSRSCLBKsPNKe06uvh8IjJtn OeSj8sWb56Gfuo0eMuMh/u9mArFz8bFfvEokW6hAWZGOsbRS1QbmE+LGJsCMUMT5rrs5aXd1RxW lwZIBxht+mhX9EQU4827iisd4gwB9oP X-Received: by 2002:a05:6820:61c:b0:69e:17f:a53d with SMTP id 006d021491bc7-69eacaad4fbmr4810849eaf.56.1781118980118; Wed, 10 Jun 2026 12:16:20 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-69e462413fesm13944193eaf.6.2026.06.10.12.16.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2026 12:16:19 -0700 (PDT) Date: Wed, 10 Jun 2026 14:16:17 -0500 From: Nathan Bossart To: pgsql-hackers@postgresql.org Subject: fix prev link in docs Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="tLZUoSdKE5glNdH/" Content-Disposition: inline List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --tLZUoSdKE5glNdH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. -- nathan --tLZUoSdKE5glNdH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=v1-0001-fix-prev-link-in-docs.patch From b874600ab6df9252b04ea4b9d98ece2e1f917850 Mon Sep 17 00:00:00 2001 From: Nathan Bossart Date: Wed, 10 Jun 2026 14:14:45 -0500 Subject: [PATCH v1 1/1] fix prev link in docs --- doc/src/sgml/stylesheet-speedup-xhtml.xsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/src/sgml/stylesheet-speedup-xhtml.xsl b/doc/src/sgml/stylesheet-speedup-xhtml.xsl index da0f2b5a970..a3b3692ba03 100644 --- a/doc/src/sgml/stylesheet-speedup-xhtml.xsl +++ b/doc/src/sgml/stylesheet-speedup-xhtml.xsl @@ -208,7 +208,7 @@ |ancestor::article[1] |ancestor::topic[1] |preceding::sect1[1] - |ancestor::sect1[1])[last()]"/> + |ancestor::sect1[1])[position()=last()]"/>