]> granicus.if.org Git - postgresql/commit
Clean up the INET-vs-CIDR situation. Get rid of the internal is_cidr flag
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 26 Jan 2006 02:35:51 +0000 (02:35 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 26 Jan 2006 02:35:51 +0000 (02:35 +0000)
commit8d8bf127605d0a87b22bb07e630a075506ca5e1e
tree3ad06ce423081f23df826753da0dc7f998e58822
parent5997386a0a38f3ded28ce6eb2c2b4f110b377e46
Clean up the INET-vs-CIDR situation.  Get rid of the internal is_cidr flag
and rely exclusively on the SQL type system to tell the difference between
the types.  Prevent creation of invalid CIDR values via casting from INET
or set_masklen() --- both of these operations now silently zero any bits
to the right of the netmask.  Remove duplicate CIDR comparison operators,
letting the type rely on the INET operators instead.
12 files changed:
doc/src/sgml/func.sgml
src/backend/optimizer/path/indxpath.c
src/backend/utils/adt/network.c
src/include/catalog/catversion.h
src/include/catalog/pg_amop.h
src/include/catalog/pg_cast.h
src/include/catalog/pg_operator.h
src/include/catalog/pg_proc.h
src/include/utils/builtins.h
src/include/utils/inet.h
src/test/regress/expected/opr_sanity.out
src/test/regress/sql/opr_sanity.sql