File tree Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -176,13 +176,6 @@ CREATE OR REPLACE FUNCTION @extschema@.create_hash_partitions_internal(
176
176
RETURNS VOID AS ' pg_pathman' , ' create_hash_partitions_internal'
177
177
LANGUAGE C;
178
178
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
-
186
179
/*
187
180
* Calculates hash for integer value
188
181
*/
Original file line number Diff line number Diff line change 25
25
26
26
PG_FUNCTION_INFO_V1 ( create_hash_partitions_internal );
27
27
28
- PG_FUNCTION_INFO_V1 ( get_type_hash_func );
29
28
PG_FUNCTION_INFO_V1 ( get_hash_part_idx );
30
29
31
30
PG_FUNCTION_INFO_V1 ( build_hash_condition );
@@ -107,20 +106,6 @@ create_hash_partitions_internal(PG_FUNCTION_ARGS)
107
106
PG_RETURN_VOID ();
108
107
}
109
108
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
-
124
109
/*
125
110
* Wrapper for hash_to_part_index().
126
111
*/
You can’t perform that action at this time.
0 commit comments