Skip to content

Commit d1a20b6

Browse files
committed
WIP huge refactoring in *.sql files, remove checks for subpartitions
1 parent b5d6405 commit d1a20b6

File tree

5 files changed

+42
-384
lines changed

5 files changed

+42
-384
lines changed

init.sql

+1-33
Original file line numberDiff line numberDiff line change
@@ -704,8 +704,7 @@ LANGUAGE sql STRICT;
704704
* Get parent of pg_pathman's partition.
705705
*/
706706
CREATE OR REPLACE FUNCTION @extschema@.get_parent_of_partition(
707-
partition_relid REGCLASS,
708-
raise_error BOOL DEFAULT TRUE)
707+
partition_relid REGCLASS)
709708
RETURNS REGCLASS AS 'pg_pathman', 'get_parent_of_partition_pl'
710709
LANGUAGE C STRICT;
711710

@@ -838,37 +837,6 @@ CREATE OR REPLACE FUNCTION @extschema@.invoke_on_partition_created_callback(
838837
RETURNS VOID AS 'pg_pathman', 'invoke_on_partition_created_callback'
839838
LANGUAGE C;
840839

841-
/*
842-
* Get parent of pg_pathman's partition.
843-
*/
844-
CREATE OR REPLACE FUNCTION @extschema@.is_equal_to_partitioning_expression(
845-
parent_relid REGCLASS,
846-
expression TEXT,
847-
value_type OID)
848-
RETURNS BOOL AS 'pg_pathman', 'is_equal_to_partitioning_expression_pl'
849-
LANGUAGE C STRICT;
850-
851-
/*
852-
* Get lower bound of a partitioned relation
853-
* bound_value is used to determine the type of bound
854-
*/
855-
CREATE OR REPLACE FUNCTION @extschema@.get_lower_bound(
856-
relid REGCLASS,
857-
bound_value ANYELEMENT
858-
)
859-
RETURNS ANYELEMENT AS 'pg_pathman', 'get_lower_bound_pl'
860-
LANGUAGE C STRICT;
861-
862-
/*
863-
* Get upper bound of a partition
864-
*/
865-
CREATE OR REPLACE FUNCTION @extschema@.get_upper_bound(
866-
relid REGCLASS,
867-
bound_value ANYELEMENT
868-
)
869-
RETURNS ANYELEMENT AS 'pg_pathman', 'get_upper_bound_pl'
870-
LANGUAGE C STRICT;
871-
872840
/*
873841
* DEBUG: Place this inside some plpgsql fuction and set breakpoint.
874842
*/

0 commit comments

Comments
 (0)