Disallow bits beyond the mask length for CIDR values, per discussion

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 063c0f6beac6107d5b2b5ba101236c71a98070f7
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2000-10-27T01:55:23Z
Releases: 7.1.1
Disallow bits beyond the mask length for CIDR values, per discussion
on pghackers.  Arrange for the sort ordering of general INET values
to be network part as major sort key, host part as minor sort key.
I did not force an initdb for this change, but anyone who's running
indexes on general INET values may need to recreate those indexes.

Files

PathChange+/−
src/backend/utils/adt/network.c modified +50 −16
src/test/regress/expected/inet.out modified +13 −15
src/test/regress/sql/inet.sql modified +3 −1