pgsql: Add vacuum_delay_point call in compute_index_stats's per-sample-

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add vacuum_delay_point call in compute_index_stats's per-sample-
Date: 2015-03-29 19:05:55
Message-ID: E1YcIWx-0002Og-R1@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e4cbfd673d530a3e841db26a74f22e11a991205a

Modified Files
--------------
src/backend/commands/analyze.c | 2 ++
1 file changed, 2 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-03-30 00:02:19 pgsql: Fix multiple bugs and infelicities in pg_rewind.
Previous Message Tom Lane 2015-03-29 18:03:04 pgsql: Make ginbuild's funcCtx be independent of its tmpCtx.