OSDN Git Service

Give inet/cidr datatypes their own hash function that ignores the inet vs
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 13 Jun 2004 21:57:28 +0000 (21:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 13 Jun 2004 21:57:28 +0000 (21:57 +0000)
commit950d047ec5913de0ff6f3badf636667926df0387
tree3d97eae31381690a3af2d7321112e74649875cde
parent0e338bba42df2ec25d4507613c14ded7269a5db8
Give inet/cidr datatypes their own hash function that ignores the inet vs
cidr type bit, the same as network_eq does.  This is needed for hash joins
and hash aggregation to work correctly on these types.  Per bug report
from Michael Fuhr, 2004-04-13.
Also, improve hash function for int8 as suggested by Greg Stark.
src/backend/access/hash/hashfunc.c
src/backend/utils/adt/network.c
src/include/catalog/catversion.h
src/include/catalog/pg_amproc.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