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

Commitab02d35

Browse files
committed
Add vacuum_delay_point call in compute_index_stats's per-sample-row loop.
Slow functions in index expressions might cause this loop to take longenough to make it worth being cancellable. Probably it would be enoughto call CHECK_FOR_INTERRUPTS here, but for consistency with otherper-sample-row loops in this file, let's use vacuum_delay_point.Report and patch by Jeff Janes. Back-patch to all supported branches.
1 parent054723b commitab02d35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/backend/commands/analyze.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,8 @@ compute_index_stats(Relation onerel, double totalrows,
693693
{
694694
HeapTupleheapTuple=rows[rowno];
695695

696+
vacuum_delay_point();
697+
696698
/*
697699
* Reset the per-tuple context each time, to reclaim any cruft
698700
* left behind by evaluating the predicate or index expressions.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp