@remove-line-for-nolocal@ is dead code
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-hackers@lists.postgresql.org
Date: 2026-02-18T23:42:37Z
Lists: pgsql-hackers
Attachments
- 0001-remove-dead-code-for-nolocal.patch (text/x-diff) patch 0001
While poking at something else, I noticed that the logic in initdb about removing "@remove-line-for-nolocal@" from pg_hba.conf is useless. Since commit f55808828, it's applied unconditionally; so we might as well just edit that out of pg_hba.conf.sample and delete the code to do so during initdb. This won't save any interesting number of cycles of course, but I think it's confusing to have that decoration in pg_hba.conf.sample when it doesn't do anything. Any objection to the attached? regards, tom lane
Commits
-
Remove no-longer-useful markers in pg_hba.conf.sample.
- 2f248ad573ce 19 (unreleased) landed
-
Remove HAVE_UNIX_SOCKETS.
- f55808828569 16.0 cited