Gather index info at the same time as table info, rather than later.

This helps avoid possible problems with later strong table locks.
This commit is contained in:
Andrew Dunstan
2014-12-30 10:48:35 -05:00
parent 6d3c085b22
commit 9f77a2fd03
2 changed files with 70 additions and 54 deletions

View File

@ -117,16 +117,16 @@ SELECT * FROM tbl_with_dropped_toast;
\! pg_repack --dbname=contrib_regression --table=tbl_cluster
INFO: repacking table "tbl_cluster"
\! pg_repack --dbname=contrib_regression --table=tbl_badindex
INFO: repacking table "tbl_badindex"
WARNING: skipping invalid index: CREATE UNIQUE INDEX idx_badindex_n ON tbl_badindex USING btree (n)
INFO: repacking table "tbl_badindex"
\! pg_repack --dbname=contrib_regression
INFO: repacking table "tbl_cluster"
INFO: repacking table "tbl_only_pkey"
INFO: repacking table "tbl_gistkey"
INFO: repacking table "tbl_with_dropped_column"
INFO: repacking table "tbl_with_dropped_toast"
INFO: repacking table "tbl_badindex"
WARNING: skipping invalid index: CREATE UNIQUE INDEX idx_badindex_n ON tbl_badindex USING btree (n)
INFO: repacking table "tbl_badindex"
INFO: repacking table "tbl_idxopts"
--
-- after