File tree Expand file tree Collapse file tree 4 files changed +916
-53
lines changed Expand file tree Collapse file tree 4 files changed +916
-53
lines changed Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ regression.out
9
9
* .gcda
10
10
* .gcno
11
11
* .gcov
12
- pg_pathman-- * .sql
12
+ pg_pathman--1.3 .sql
Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ LANGUAGE plpgsql;
251
251
CREATE OR REPLACE FUNCTION @extschema@.show_partition_list()
252
252
RETURNS TABLE (
253
253
parent REGCLASS,
254
- " partition" REGCLASS,
254
+ partition REGCLASS,
255
255
parttype INT4,
256
256
partattr TEXT ,
257
257
range_min TEXT ,
@@ -643,21 +643,21 @@ SET pg_pathman.enable_partitionfilter = off; /* ensures that PartitionFilter is
643
643
*/
644
644
CREATE OR REPLACE FUNCTION @extschema@.copy_foreign_keys(
645
645
parent_relid REGCLASS,
646
- partition_relid REGCLASS)
646
+ partition REGCLASS)
647
647
RETURNS VOID AS
648
648
$$
649
649
DECLARE
650
650
rec RECORD;
651
651
652
652
BEGIN
653
653
PERFORM @extschema@.validate_relname(parent_relid);
654
- PERFORM @extschema@.validate_relname(partition_relid );
654
+ PERFORM @extschema@.validate_relname(partition );
655
655
656
656
FOR rec IN (SELECT oid as conid FROM pg_catalog .pg_constraint
657
657
WHERE conrelid = parent_relid AND contype = ' f' )
658
658
LOOP
659
659
EXECUTE format(' ALTER TABLE %s ADD %s' ,
660
- partition_relid ::TEXT ,
660
+ partition ::TEXT ,
661
661
pg_catalog .pg_get_constraintdef (rec .conid ));
662
662
END LOOP;
663
663
END
@@ -880,7 +880,7 @@ LANGUAGE C STRICT;
880
880
*/
881
881
CREATE OR REPLACE FUNCTION @extschema@.invoke_on_partition_created_callback(
882
882
parent_relid REGCLASS,
883
- " partition" REGCLASS,
883
+ partition REGCLASS,
884
884
init_callback REGPROCEDURE,
885
885
start_value ANYELEMENT,
886
886
end_value ANYELEMENT)
@@ -892,7 +892,7 @@ LANGUAGE C;
892
892
*/
893
893
CREATE OR REPLACE FUNCTION @extschema@.invoke_on_partition_created_callback(
894
894
parent_relid REGCLASS,
895
- " partition" REGCLASS,
895
+ partition REGCLASS,
896
896
init_callback REGPROCEDURE)
897
897
RETURNS VOID AS ' pg_pathman' , ' invoke_on_partition_created_callback'
898
898
LANGUAGE C;
You can’t perform that action at this time.
0 commit comments