@@ -169,9 +169,6 @@ BEGIN
169169 NULL );
170170 END IF;
171171
172- /* Notify backend about changes */
173- PERFORM @extschema@.on_create_partitions(parent_relid);
174-
175172 /* Relocate data if asked to */
176173 IF partition_data = true THEN
177174 PERFORM @extschema@.set_enable_parent(parent_relid, false);
@@ -267,9 +264,6 @@ BEGIN
267264 NULL );
268265 END IF;
269266
270- /* Notify backend about changes */
271- PERFORM @extschema@.on_create_partitions(parent_relid);
272-
273267 /* Relocate data if asked to */
274268 IF partition_data = true THEN
275269 PERFORM @extschema@.set_enable_parent(parent_relid, false);
@@ -326,9 +320,6 @@ BEGIN
326320 partition_names,
327321 tablespaces);
328322
329- /* Notify backend about changes */
330- PERFORM @extschema@.on_create_partitions(parent_relid);
331-
332323 /* Relocate data if asked to */
333324 IF partition_data = true THEN
334325 PERFORM @extschema@.set_enable_parent(parent_relid, false);
@@ -386,9 +377,6 @@ BEGIN
386377 part_count := part_count + 1 ;
387378 END LOOP;
388379
389- /* Notify backend about changes */
390- PERFORM @extschema@.on_create_partitions(parent_relid);
391-
392380 /* Relocate data if asked to */
393381 IF partition_data = true THEN
394382 PERFORM @extschema@.set_enable_parent(parent_relid, false);
@@ -448,9 +436,6 @@ BEGIN
448436 part_count := part_count + 1 ;
449437 END LOOP;
450438
451- /* Notify backend about changes */
452- PERFORM @extschema@.on_create_partitions(parent_relid);
453-
454439 /* Relocate data if asked to */
455440 IF partition_data = true THEN
456441 PERFORM @extschema@.set_enable_parent(parent_relid, false);
@@ -551,9 +536,6 @@ BEGIN
551536 partition_relid::TEXT ,
552537 v_check_name,
553538 v_cond);
554-
555- /* Tell backend to reload configuration */
556- PERFORM @extschema@.on_update_partitions(v_parent);
557539END
558540$$
559541LANGUAGE plpgsql;
@@ -615,8 +597,6 @@ BEGIN
615597 INTO
616598 v_part_name;
617599
618- /* Invalidate cache */
619- PERFORM @extschema@.on_update_partitions(parent_relid);
620600 RETURN v_part_name;
621601END
622602$$
@@ -725,8 +705,6 @@ BEGIN
725705 INTO
726706 v_part_name;
727707
728- /* Invalidate cache */
729- PERFORM @extschema@.on_update_partitions(parent_relid);
730708 RETURN v_part_name;
731709END
732710$$
@@ -828,7 +806,6 @@ BEGIN
828806 end_value,
829807 partition_name,
830808 tablespace);
831- PERFORM @extschema@.on_update_partitions(parent_relid);
832809
833810 RETURN v_part_name;
834811END
@@ -893,9 +870,6 @@ BEGIN
893870 EXECUTE format(' DROP TABLE %s' , partition_relid::TEXT );
894871 END IF;
895872
896- /* Invalidate cache */
897- PERFORM @extschema@.on_update_partitions(parent_relid);
898-
899873 RETURN part_name;
900874END
901875$$
@@ -978,9 +952,6 @@ BEGIN
978952 start_value,
979953 end_value);
980954
981- /* Invalidate cache */
982- PERFORM @extschema@.on_update_partitions(parent_relid);
983-
984955 RETURN partition_relid;
985956END
986957$$
@@ -1026,9 +997,6 @@ BEGIN
1026997 @extschema@.build_update_trigger_name(parent_relid),
1027998 partition_relid::TEXT );
1028999
1029- /* Invalidate cache */
1030- PERFORM @extschema@.on_update_partitions(parent_relid);
1031-
10321000 RETURN partition_relid;
10331001END
10341002$$
0 commit comments