Re: PATCH: Disallow a netmask of zero unless the IP is also all zeroes

Daniel Gustafsson <daniel@yesql.se>

From: Daniel Gustafsson <daniel@yesql.se>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Greg Sabino Mullane <htamfids@gmail.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2025-02-11T21:06:07Z
Lists: pgsql-hackers
> On 11 Feb 2025, at 21:25, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> I'm a bit distressed to realize that hba.c isn't using cidr_in.
> Maybe we should try to share code instead of duplicating yet more.

+1.  I have a note along these lines on my never-shrinking TODO, I think it
would be great if we took a stab at that.

--
Daniel Gustafsson