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

Commite1dddf3

Browse files
Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL
lazy_truncate_heap() was waiting forVACUUM_TRUNCATE_LOCK_WAIT_INTERVAL, but in microsecondsnot milliseconds as originally intended.Found by code inspection.Simon Riggs
1 parentd2a5b2b commite1dddf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/commands/vacuumlazy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1441,7 +1441,7 @@ lazy_truncate_heap(Relation onerel, LVRelStats *vacrelstats)
14411441
return;
14421442
}
14431443

1444-
pg_usleep(VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL);
1444+
pg_usleep(VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL*1000L);
14451445
}
14461446

14471447
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp