Skip to content

Commit efa2918

Browse files
committed
remove function get_type_hash_func()
1 parent d9e7edb commit efa2918

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

hash.sql

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,6 @@ CREATE OR REPLACE FUNCTION @extschema@.create_hash_partitions_internal(
176176
RETURNS VOID AS 'pg_pathman', 'create_hash_partitions_internal'
177177
LANGUAGE C;
178178

179-
/*
180-
* Returns hash function OID for specified type
181-
*/
182-
CREATE OR REPLACE FUNCTION @extschema@.get_type_hash_func(REGTYPE)
183-
RETURNS REGPROC AS 'pg_pathman', 'get_type_hash_func'
184-
LANGUAGE C STRICT;
185-
186179
/*
187180
* Calculates hash for integer value
188181
*/

src/pl_hash_funcs.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
PG_FUNCTION_INFO_V1( create_hash_partitions_internal );
2727

28-
PG_FUNCTION_INFO_V1( get_type_hash_func );
2928
PG_FUNCTION_INFO_V1( get_hash_part_idx );
3029

3130
PG_FUNCTION_INFO_V1( build_hash_condition );
@@ -107,20 +106,6 @@ create_hash_partitions_internal(PG_FUNCTION_ARGS)
107106
PG_RETURN_VOID();
108107
}
109108

110-
/*
111-
* Returns hash function's OID for a specified type.
112-
*/
113-
Datum
114-
get_type_hash_func(PG_FUNCTION_ARGS)
115-
{
116-
TypeCacheEntry *tce;
117-
Oid type_oid = PG_GETARG_OID(0);
118-
119-
tce = lookup_type_cache(type_oid, TYPECACHE_HASH_PROC);
120-
121-
PG_RETURN_OID(tce->hash_proc);
122-
}
123-
124109
/*
125110
* Wrapper for hash_to_part_index().
126111
*/

0 commit comments

Comments
 (0)