You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Various [GUC](#disabling-pg_pathman) toggles and configurable settings.
73
73
@@ -182,17 +182,17 @@ Stops a background worker performing a concurrent partitioning task. Note: worke
182
182
183
183
### Triggers
184
184
185
-
Triggers are no longer required nor for INSERTs, neither for cross-partition UPDATEs. However, user-supplied triggers *are supported*.
185
+
Triggers are no longer required nor for INSERTs, neither for cross-partition UPDATEs. However, user-supplied triggers *are supported*:
186
186
187
-
Each inserted row results in execution of BEFORE/AFTER INSERT trigger functions of a **corresponding partition**.
188
-
Each updated row results in execution of BEFORE/AFTER UPDATE trigger functions of a **corresponding partition**.
189
-
Each moved row (cross-partition update) results in execution of BEFORE UPDATE + BEFORE/AFTER DELETE + BEFORE/AFTER INSERT trigger functions of **corresponding partitions**.
187
+
*Each **inserted row** results in execution of `BEFORE/AFTER INSERT` trigger functions of a *corresponding partition*.
188
+
*Each **updated row** results in execution of `BEFORE/AFTER UPDATE` trigger functions of a *corresponding partition*.
189
+
*Each **moved row** (cross-partition update) results in execution of `BEFORE UPDATE` + `BEFORE/AFTER DELETE` + `BEFORE/AFTER INSERT` trigger functions of *corresponding partitions*.
190
190
191
191
### Post-creation partition management
192
192
```plpgsql
193
193
replace_hash_partition(old_partition REGCLASS,
194
194
new_partition REGCLASS,
195
-
lock_parent BOOL DEFAULT TRUE)
195
+
lock_parent BOOLEAN DEFAULT TRUE)
196
196
```
197
197
Replaces specified partition of HASH-partitioned table with another table. The `lock_parent` parameter will prevent any INSERT/UPDATE/ALTER TABLE queries to parent table.
198
198
@@ -201,7 +201,7 @@ Replaces specified partition of HASH-partitioned table with another table. The `
201
201
split_range_partition(partition_relid REGCLASS,
202
202
split_value ANYELEMENT,
203
203
partition_name TEXT DEFAULT NULL,
204
-
tablespace TEXT DEFAULT NULL)
204
+
tablespace TEXT DEFAULT NULL)
205
205
```
206
206
Split RANGE `partition` in two by `split_value`. Partition creation callback is invoked for a new partition if available.
`PartitionRouter` is another *proxy node* used in conjunction with `PartitionFilter` to enable cross-partition UPDATEs (i.e. when you update any column of a partitioning key). Since this node has a great deal of side effects (ordinary `UPDATE` becomes slower; cross-partition `UPDATE` is transformed into `DELETE + INSERT`), it is disabled by default. To enable it, refer to the list of [GUCs](#disabling-pg_pathman) below.
437
+
`PartitionRouter` is another *proxy node* used in conjunction with `PartitionFilter` to enable cross-partition UPDATEs (i.e. when update of partitioning key requires that we move row to another partition). Since this node has a great deal of side effects (ordinary `UPDATE` becomes slower; cross-partition `UPDATE` is transformed into `DELETE + INSERT`), it is disabled by default. To enable it, refer to the list of [GUCs](#disabling-pg_pathman) below.
0 commit comments