Remove no-longer-useful markers in pg_hba.conf.sample.

The source version of pg_hba.conf.sample contains
@remove-line-for-nolocal@ markers that indicate which lines should
be deleted for an installation that doesn't HAVE_UNIX_SOCKETS.
We no longer support that case, and since commit f55808828 all
that initdb is doing is unconditionally removing the markers.
We might as well remove the markers from the source version and
drop the removal code, which is unintelligible now anyway.

This will not of course save any noticeable number of cycles
in initdb, but it might save some confusion for future
developers looking at pg_hba.conf.sample.  It also reduces the
number of distinct cases that replace_token() has to support,
possibly allowing some tightening of that function.

Discussion: https://postgr.es/m/[email protected]

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2f248ad573ce30e6847318ce4ea5eec3f747cbda

Modified Files
--------------
src/backend/libpq/pg_hba.conf.sample | 6 +++---
src/bin/initdb/initdb.c              | 3 ---
2 files changed, 3 insertions(+), 6 deletions(-)

Reply via email to