Add vacuum_delay_point call in compute_index_stats's per-sample-row loop.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: f444de5e34f673043b948e14ad3f76a30f698ecb
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2015-03-29T19:04:18Z
Releases: 9.4.2
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 long
enough to make it worth being cancellable.  Probably it would be enough
to call CHECK_FOR_INTERRUPTS here, but for consistency with other
per-sample-row loops in this file, let's use vacuum_delay_point.

Report and patch by Jeff Janes.  Back-patch to all supported branches.

Files

PathChange+/−
src/backend/commands/analyze.c modified +2 −0