@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

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

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

  2. Remove HAVE_UNIX_SOCKETS.