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
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -124,9 +124,11 @@ Performs RANGE-partitioning from specified range for `relation` by partitioning
124
124
### Data migration
125
125
126
126
```plpgsql
127
-
partition_table_concurrently(relation REGCLASS)
127
+
partition_table_concurrently(relation REGCLASS,
128
+
batch_size INTEGER DEFAULT 1000,
129
+
sleep_time FLOAT8 DEFAULT 1.0)
128
130
```
129
-
Starts a background worker to move data from parent table to partitions. The worker utilizes short transactions to copy small batches of data (up to 10K rows per transaction) and thus doesn't significantly interfere with user's activity.
131
+
Starts a background worker to move data from parent table to partitions. The worker utilizes short transactions to copy small batches of data (up to 10K rows per transaction) and thus doesn't significantly interfere with user's activity. If the worker is unable to lock rows of a batch, it sleeps for `sleep_time` seconds up to 60 times before the next attempt, and quits if it's still unable to lock the batch.
0 commit comments