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

Commit3f850c3

Browse files
Assorted trivial cleanup ofc5c239e
c5c239e made btree vacuum use the read stream API. Though it usedfunctions declared in read_stream.h, it relied on transitively includingit. Explicitly include that file. Also remove an extraneous newline anddecrease the scope of one of the local variables in btvacuumscan().
1 parent7fe312f commit3f850c3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎src/backend/access/nbtree/nbtree.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include"storage/indexfsm.h"
3131
#include"storage/ipc.h"
3232
#include"storage/lmgr.h"
33+
#include"storage/read_stream.h"
3334
#include"utils/fmgrprotos.h"
3435
#include"utils/index_selfuncs.h"
3536
#include"utils/memutils.h"
@@ -1072,8 +1073,6 @@ btvacuumscan(IndexVacuumInfo *info, IndexBulkDeleteResult *stats,
10721073
0);
10731074
for (;;)
10741075
{
1075-
Bufferbuf;
1076-
10771076
/* Get the current relation length */
10781077
if (needLock)
10791078
LockRelationForExtension(rel,ExclusiveLock);
@@ -1089,13 +1088,13 @@ btvacuumscan(IndexVacuumInfo *info, IndexBulkDeleteResult *stats,
10891088
if (p.current_blocknum >=num_pages)
10901089
break;
10911090

1092-
10931091
p.last_exclusive=num_pages;
10941092

10951093
/* Iterate over pages, then loop back to recheck relation length */
10961094
while (true)
10971095
{
10981096
BlockNumbercurrent_block;
1097+
Bufferbuf;
10991098

11001099
/* call vacuum_delay_point while not holding any buffer lock */
11011100
vacuum_delay_point(false);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp