generate.consistent.ids

Started by Peter Eisentrautalmost 9 years ago2 messagesdocs
Beta feature

Hackorum builds and tests every patch posted to the lists, not only commitfest submissions. This is Hackorum's own CI rather than the PostgreSQL project's, and it is still under testing - please report anything that looks wrong.

won't retrysuccessCI history

You can run a PostgreSQL built from this patch straight from Docker, with no checkout and no build:

docker run --rm -p 5432:5432 ghcr.io/hackorum-dev/postgres-patch:t76089
psql -h localhost -U postgres

Built from patchset v1 (message #1), July 27, 2026 at 09:49 PM.

Every patchset is also pushed to a branch of our PostgreSQL fork, so you can check out the same tree CI built. Without a PostgreSQL checkout:

git clone --branch t76089_1 https://github.com/hackorum-dev/postgres.git

In a checkout you already have, add the fork once:

git remote add hackorum https://github.com/hackorum-dev/postgres.git

then, for this patchset and every later one:

git fetch hackorum t76089_1 && git checkout t76089_1

Patchset v1 (message #1) is on t76089_1

Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

When the stylesheets create anchors on elements that don't have an id
attribute, they use some internal mechanism to make one up. With the
DSSSL stylesheets, those are the things like AEN112787. With the new
XSL stylesheets, you similarly get things like idm21497, but unlike the
DSSSL way, those are not consistent across builds, because they are made
from some internal memory locations. That makes it hard to diff build
results without resorting to a bunch of tricks that we have had to use
recently to manage the toolchain transition. And such links cannot be
shared, because they change on the next build.

I found that the setting

<xsl:param name="generate.consistent.ids" select="1"/>

also enables the XSL stylesheets to produce anchors that are consistent
across builds. I would have expected that to increase the build time,
but in my testing the penalty is barely noticeable. So I would like to
make this change in PG11 and also PG10. Patch attached.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachments:

t76089_1
0001-doc-Turn-on-generate.consistent.ids-parameter.patchtext/plain; charset=UTF-8; name=0001-doc-Turn-on-generate.consistent.ids-parameter.patch; x-mac-creator=0; x-mac-type=0Download+1-1
#2Peter Eisentraut
peter_e@gmx.net
In reply to: Peter Eisentraut (#1)
Re: generate.consistent.ids

On 12/1/17 13:39, Peter Eisentraut wrote:

I found that the setting

<xsl:param name="generate.consistent.ids" select="1"/>

also enables the XSL stylesheets to produce anchors that are consistent
across builds. I would have expected that to increase the build time,
but in my testing the penalty is barely noticeable. So I would like to
make this change in PG11 and also PG10. Patch attached.

committed to master and PG10

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services