mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +03:00
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.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/utils/builtins.h,v 1.242 2004/06/13 19:56:52 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/include/utils/builtins.h,v 1.243 2004/06/13 21:57:26 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -664,6 +664,7 @@ extern Datum network_eq(PG_FUNCTION_ARGS);
|
||||
extern Datum network_ge(PG_FUNCTION_ARGS);
|
||||
extern Datum network_gt(PG_FUNCTION_ARGS);
|
||||
extern Datum network_ne(PG_FUNCTION_ARGS);
|
||||
extern Datum hashinet(PG_FUNCTION_ARGS);
|
||||
extern Datum network_sub(PG_FUNCTION_ARGS);
|
||||
extern Datum network_subeq(PG_FUNCTION_ARGS);
|
||||
extern Datum network_sup(PG_FUNCTION_ARGS);
|
||||
|
Reference in New Issue
Block a user