@remove-line-for-nolocal@ is dead code

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: @remove-line-for-nolocal@ is dead code
Date: 2026-02-18 23:42:37
Message-ID: 2287786.1771458157@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
0001-remove-dead-code-for-nolocal.patch text/x-diff 1.7 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Haritabh Gupta 2026-02-18 23:50:16 Re: [PATCH] pg_get_domain_ddl: DDL reconstruction function for CREATE DOMAIN statement
Previous Message Peter Smith 2026-02-18 23:39:42 Re: DOCS - System Applications 'datadir' parameter