forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit77f1546
committed
reindexdb: Skip reindexing temporary tables and indexes.
Reindexing temp tables or indexes of other sessions is not allowed.However, reindexdb in parallel mode previously listed them asthe objects to process, leading to failures.This commit ensures reindexdb in parallel mode skips temporary tablesand indexes by adding a condition based on the relpersistence columnin pg_class to the object listing queries, preventing these issues.Note that this commit does not affect reindexdb when temporary tablesor indexes are explicitly specified using the -t or -j options;reindexdb in that case still does not skip them and can cause an error.Back-patch to v13 where parallel mode was introduced in reindexdb.Author: Fujii MasaoReviewed-by: Michael PaquierDiscussion:https://postgr.es/m/5f37ee56-14fb-44fe-9150-9eb97e10538b@oss.nttdata.com1 parentda99df1 commit77f1546
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
649 | 649 |
| |
650 | 650 |
| |
651 | 651 |
| |
| 652 | + | |
| 653 | + | |
652 | 654 |
| |
653 | 655 |
| |
654 | 656 |
| |
| |||
671 | 673 |
| |
672 | 674 |
| |
673 | 675 |
| |
| 676 | + | |
| 677 | + | |
674 | 678 |
| |
675 | 679 |
| |
676 | 680 |
| |
|
0 commit comments
Comments
(0)