]> granicus.if.org Git - postgresql/commit
Add vacuum_delay_point call in compute_index_stats's per-sample-row loop.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Mar 2015 19:04:09 +0000 (15:04 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Mar 2015 19:04:38 +0000 (15:04 -0400)
commit152c94632f1ece90fccc87ff1fabe809a89e3024
tree7afb426fb3421d3d0845a783e124a19dd59bab61
parent6997f226f5de7e02b6afd2d8ff67cf40f20e878b
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.
src/backend/commands/analyze.c