diff options
author | Alvaro Herrera | 2019-03-11 16:17:50 +0000 |
---|---|---|
committer | Alvaro Herrera | 2019-03-11 16:17:50 +0000 |
commit | af38498d4c9b840e0e454574519459edda3871db (patch) | |
tree | 52c5240ef125da9eabad5d610961f422f13de733 /src/backend/utils/adt/network.c | |
parent | b212245f96437b574b59993c772e4d9276965e49 (diff) |
Move hash_any prototype from access/hash.h to utils/hashutils.h
... as well as its implementation from backend/access/hash/hashfunc.c to
backend/utils/hash/hashfn.c.
access/hash is the place for the hash index AM, not really appropriate
for generic facilities, which is what hash_any is; having things the old
way meant that anything using hash_any had to include the AM's include
file, pointlessly polluting its namespace with unrelated, unnecessary
cruft.
Also move the HTEqual strategy number to access/stratnum.h from
access/hash.h.
To avoid breaking third-party extension code, add an #include
"utils/hashutils.h" to access/hash.h. (An easily removed line by
committers who enjoy their asbestos suits to protect them from angry
extension authors.)
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/backend/utils/adt/network.c')
-rw-r--r-- | src/backend/utils/adt/network.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/utils/adt/network.c b/src/backend/utils/adt/network.c index 7f3ca7f930d..db9dfcbb7dc 100644 --- a/src/backend/utils/adt/network.c +++ b/src/backend/utils/adt/network.c @@ -12,7 +12,7 @@ #include <netinet/in.h> #include <arpa/inet.h> -#include "access/hash.h" +#include "access/stratnum.h" #include "catalog/pg_opfamily.h" #include "catalog/pg_type.h" #include "common/ip.h" @@ -24,6 +24,7 @@ #include "nodes/supportnodes.h" #include "utils/builtins.h" #include "utils/fmgroids.h" +#include "utils/hashutils.h" #include "utils/inet.h" #include "utils/lsyscache.h" |