Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd41202f

Browse files
committed
Fix comment related to concurrent index swapping in index.c
A comment about switching indisvalid of the new and old indexes swappedin REINDEX CONCURRENTLY got this backwards.Issue introduced by5dc92b8, the original commit of REINDEXCONCURRENTLY.Author: Julien RouhaudDiscussion:https://postgr.es/m/20200318143340.GA46897@nolBackpatch-through: 12
1 parent1f39bce commitd41202f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/catalog/index.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ index_concurrently_swap(Oid newIndexId, Oid oldIndexId, const char *oldName)
15311531
newIndexForm->indisclustered=oldIndexForm->indisclustered;
15321532

15331533
/*
1534-
* Mark theold index as valid, and thenew index as invalid similarly
1534+
* Mark thenew index as valid, and theold index as invalid similarly
15351535
* to what index_set_state_flags() does.
15361536
*/
15371537
newIndexForm->indisvalid= true;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp