Introduce --dont-kill-backend option.
pg_repack needs to take an exclusive lock at the end of the reorganization. If the lock cannot be taken after duration --wait-timeout option specified and this option is true, pg_repack gives up to repack a target table instead of cancelling conflicting backend. False by default.
This commit is contained in:
@ -387,3 +387,8 @@ ERROR: cannot repack specific table(s) in schema, use schema.table notation inst
|
||||
-- => ERROR
|
||||
\! pg_repack --dbname=contrib_regression --all --schema=test_schema1
|
||||
ERROR: cannot repack specific schema(s) in all databases
|
||||
--
|
||||
-- don't kill backend
|
||||
--
|
||||
\! pg_repack --dbname=contrib_regression --table=tbl_cluster --dont-kill-backend
|
||||
INFO: repacking table "tbl_cluster"
|
||||
|
Reference in New Issue
Block a user