@@ -170,9 +170,6 @@ BEGIN
170170 NULL );
171171 END IF;
172172
173- /* Notify backend about changes */
174- PERFORM @extschema@.on_create_partitions(parent_relid);
175-
176173 /* Relocate data if asked to */
177174 IF partition_data = true THEN
178175 PERFORM @extschema@.set_enable_parent(parent_relid, false);
@@ -268,9 +265,6 @@ BEGIN
268265 NULL );
269266 END IF;
270267
271- /* Notify backend about changes */
272- PERFORM @extschema@.on_create_partitions(parent_relid);
273-
274268 /* Relocate data if asked to */
275269 IF partition_data = true THEN
276270 PERFORM @extschema@.set_enable_parent(parent_relid, false);
@@ -327,9 +321,6 @@ BEGIN
327321 partition_names,
328322 tablespaces);
329323
330- /* Notify backend about changes */
331- PERFORM @extschema@.on_create_partitions(parent_relid);
332-
333324 /* Relocate data if asked to */
334325 IF partition_data = true THEN
335326 PERFORM @extschema@.set_enable_parent(parent_relid, false);
@@ -387,9 +378,6 @@ BEGIN
387378 part_count := part_count + 1 ;
388379 END LOOP;
389380
390- /* Notify backend about changes */
391- PERFORM @extschema@.on_create_partitions(parent_relid);
392-
393381 /* Relocate data if asked to */
394382 IF partition_data = true THEN
395383 PERFORM @extschema@.set_enable_parent(parent_relid, false);
@@ -450,9 +438,6 @@ BEGIN
450438 part_count := part_count + 1 ;
451439 END LOOP;
452440
453- /* Notify backend about changes */
454- PERFORM @extschema@.on_create_partitions(parent_relid);
455-
456441 /* Relocate data if asked to */
457442 IF partition_data = true THEN
458443 PERFORM @extschema@.set_enable_parent(parent_relid, false);
@@ -553,9 +538,6 @@ BEGIN
553538 partition_relid::TEXT ,
554539 v_check_name,
555540 v_cond);
556-
557- /* Tell backend to reload configuration */
558- PERFORM @extschema@.on_update_partitions(v_parent);
559541END
560542$$
561543LANGUAGE plpgsql;
@@ -617,8 +599,6 @@ BEGIN
617599 INTO
618600 v_part_name;
619601
620- /* Invalidate cache */
621- PERFORM @extschema@.on_update_partitions(parent_relid);
622602 RETURN v_part_name;
623603END
624604$$
@@ -727,8 +707,6 @@ BEGIN
727707 INTO
728708 v_part_name;
729709
730- /* Invalidate cache */
731- PERFORM @extschema@.on_update_partitions(parent_relid);
732710 RETURN v_part_name;
733711END
734712$$
@@ -830,7 +808,6 @@ BEGIN
830808 end_value,
831809 partition_name,
832810 tablespace);
833- PERFORM @extschema@.on_update_partitions(parent_relid);
834811
835812 RETURN v_part_name;
836813END
@@ -895,9 +872,6 @@ BEGIN
895872 EXECUTE format(' DROP TABLE %s' , partition_relid::TEXT );
896873 END IF;
897874
898- /* Invalidate cache */
899- PERFORM @extschema@.on_update_partitions(parent_relid);
900-
901875 RETURN part_name;
902876END
903877$$
@@ -980,9 +954,6 @@ BEGIN
980954 start_value,
981955 end_value);
982956
983- /* Invalidate cache */
984- PERFORM @extschema@.on_update_partitions(parent_relid);
985-
986957 RETURN partition_relid;
987958END
988959$$
@@ -1028,9 +999,6 @@ BEGIN
1028999 @extschema@.build_update_trigger_name(parent_relid),
10291000 partition_relid::TEXT );
10301001
1031- /* Invalidate cache */
1032- PERFORM @extschema@.on_update_partitions(parent_relid);
1033-
10341002 RETURN partition_relid;
10351003END
10361004$$
0 commit comments