The PostgreSQL component, out of the shared tree and into a unit #1
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Keel-Linux/unit-postgresql!1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/the-postgresql-component"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The second component to move under decision 0010.
overlays/pgsqloverlay/, byte identical, modes includedconf/pgsqlconf, executablemk/turnkey/pgsql.mkconf-vars, namingPGSQL_PASSplanremovelists/pgsqlTwo changes to the conf script, both deliberate:
listen_addresses = '::1,127.0.0.1', two literal addresses, whichkeel-postgresql'sconf.d/mainset until today. Binding is what whoever installs the server decides, and LAPP will carry this component without carrying that recipe: decision 0013 makes the database a component so LAMP and LAPP can share oneapache-phplayer, and a fix living in one recipe would have to be copied into the other. Debian's'localhost'binds the IPv4 loopback only, because/etc/hostsmaps::1toip6-localhostand never tolocalhost.PG_LIB_DIRandPG_CONF_ROOTare overridable defaults, so the script can be measured. A build sets neither, and the script ships nowhere, because fab copies it into the chroot, runs it and removes it.PGSQL_PASSis carried inconf-vars, unlikeMYSQL_PASSinunit-mariadb, because this conf script actually reads it.Test plan:
bats tests/, 23 testsCOVERAGE_THRESHOLD=100 tests/coverage.sh, 100 percent (17/17), gate raised from the bootstrap 0postgresqllayer, plus a fourth build to attribute the changelog entryMeasured: four builds of
bt-layer postgresql --parent coreon the build host, with the recipe change in keel-postgresql#7. Package list identical (430), symlinks identical (3,802), 14 of 37,439 files differing against a 13-file noise floor, and exactly one path outside it:/etc/postgresql/17/main/postgresql.conf, differing in the trailing comment of thelisten_addressesline. The value is byte identical, so the bind fix survives the move.