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

Commit80d1765

Browse files
author
Alexander Korotkov
committed
Make it possible to initialize multixact with non-zero offset.
1 parentcbf17be commit80d1765

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

‎src/backend/access/transam/multixact.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,6 +1714,20 @@ BootStrapMultiXact(void)
17141714
}
17151715

17161716
LWLockRelease(MultiXactMemberControlLock);
1717+
1718+
/*
1719+
* If we're starting not from zero offset, initilize dummy multixact to
1720+
* evade too long loop in PerformMembersTruncation().
1721+
*/
1722+
if (MultiXactState->nextOffset>0&&MultiXactState->nextMXact>0)
1723+
{
1724+
RecordNewMultiXact(FirstMultiXactId,
1725+
MultiXactState->nextOffset,
1726+
0,NULL);
1727+
RecordNewMultiXact(MultiXactState->nextMXact-1,
1728+
MultiXactState->nextOffset,
1729+
0,NULL);
1730+
}
17171731
}
17181732

17191733
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp