Skip to content

Commit f9fa074

Browse files
committed
concrete types (hash.sql)
1 parent bf42045 commit f9fa074

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hash.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
CREATE OR REPLACE FUNCTION @extschema@.create_hash_partitions(
1515
parent_relid REGCLASS,
1616
attribute TEXT,
17-
partitions_count INTEGER,
17+
partitions_count INT4,
1818
partition_data BOOLEAN DEFAULT TRUE,
1919
partition_names TEXT[] DEFAULT NULL,
2020
tablespaces TEXT[] DEFAULT NULL)
@@ -280,7 +280,7 @@ $$ LANGUAGE plpgsql;
280280
CREATE OR REPLACE FUNCTION @extschema@.create_hash_partitions_internal(
281281
parent_relid REGCLASS,
282282
attribute TEXT,
283-
partitions_count INTEGER,
283+
partitions_count INT4,
284284
partition_names TEXT[] DEFAULT NULL,
285285
tablespaces TEXT[] DEFAULT NULL)
286286
RETURNS VOID AS 'pg_pathman', 'create_hash_partitions_internal'
@@ -296,7 +296,7 @@ LANGUAGE C STRICT;
296296
/*
297297
* Calculates hash for integer value
298298
*/
299-
CREATE OR REPLACE FUNCTION @extschema@.get_hash_part_idx(INTEGER, INTEGER)
299+
CREATE OR REPLACE FUNCTION @extschema@.get_hash_part_idx(INT4, INT4)
300300
RETURNS INTEGER AS 'pg_pathman', 'get_hash_part_idx'
301301
LANGUAGE C STRICT;
302302

@@ -307,6 +307,6 @@ CREATE OR REPLACE FUNCTION @extschema@.build_hash_condition(
307307
attribute_type REGTYPE,
308308
attribute TEXT,
309309
partitions_count INT4,
310-
partitions_index INT4)
310+
partition_index INT4)
311311
RETURNS TEXT AS 'pg_pathman', 'build_hash_condition'
312312
LANGUAGE C STRICT;

0 commit comments

Comments
 (0)