Re: PATCH: Disallow a netmask of zero unless the IP is also all zeroes - Mailing list pgsql-hackers

From Greg Sabino Mullane
Subject Re: PATCH: Disallow a netmask of zero unless the IP is also all zeroes
Date
Msg-id CAKAnmmJLKuThQ-1mvF1Dd8HhE46xgm2uPNC3Nbm9C7gW+GOZUA@mail.gmail.com
Whole thread Raw
In response to Re: PATCH: Disallow a netmask of zero unless the IP is also all zeroes  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tue, Feb 11, 2025 at 3:25 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
More generally, should we reject if the netmask causes *any* nonzero
IP bits to be ignored?  Our CIDR type already imposes that rule:

Yeah, I like that idea a lot. That's a great DETAIL message.

Cheers,
Greg

--
Crunchy Data - https://www.crunchydata.com
Enterprise Postgres Software Products & Tech Support

pgsql-hackers by date:

Previous
From: Greg Sabino Mullane
Date:
Subject: Re: Proposal: allow non-masked IPs inside of pg_hba.conf
Next
From: Peter Smith
Date:
Subject: Re: describe special values in GUC descriptions more consistently