diff --git a/doc/pg_repack.rst b/doc/pg_repack.rst index f4b1ab9..824e1c2 100644 --- a/doc/pg_repack.rst +++ b/doc/pg_repack.rst @@ -126,6 +126,7 @@ Options: -k, --no-superuser-check skip superuser checks in client -C, --exclude-extension don't repack tables which belong to specific extension --error-on-invalid-index don't repack when invalid index is found + --apply-count number of tuples to apply in one trasaction during replay --switch-threshold switch tables when that many tuples are left to catchup Connection options: diff --git a/regress/expected/repack-check.out b/regress/expected/repack-check.out index 5ab9eca..a2c0970 100644 --- a/regress/expected/repack-check.out +++ b/regress/expected/repack-check.out @@ -341,6 +341,11 @@ INFO: repacking index "public.child_b_2_pkey" INFO: repacking indexes of "public.parent_b" INFO: repacking index "public.parent_b_pkey" -- +-- Apply count +-- +\! pg_repack --dbname=contrib_regression --table=tbl_cluster --apply-count 1234 +INFO: repacking table "public.tbl_cluster" +-- -- Switch threshold -- \! pg_repack --dbname=contrib_regression --table=tbl_cluster --switch-threshold 200 diff --git a/regress/sql/repack-check.sql b/regress/sql/repack-check.sql index 34018b0..189bd83 100644 --- a/regress/sql/repack-check.sql +++ b/regress/sql/repack-check.sql @@ -170,6 +170,10 @@ CREATE TABLE child_b_2(val integer primary key) INHERITS(parent_b); -- => OK \! pg_repack --dbname=contrib_regression --parent-table=parent_a --parent-table=parent_b --only-indexes +-- +-- Apply count +-- +\! pg_repack --dbname=contrib_regression --table=tbl_cluster --apply-count 1234 -- -- Switch threshold --