File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/backend/optimizer/util Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 88 *
99 *
1010 * IDENTIFICATION
11- * $PostgreSQL: pgsql/src/backend/optimizer/util/pathnode.c,v 1.120 2005/04/25 01:30:13 tgl Exp $
11+ * $PostgreSQL: pgsql/src/backend/optimizer/util/pathnode.c,v 1.121 2005/06/03 19:00:12 tgl Exp $
1212 *
1313 *-------------------------------------------------------------------------
1414 */
@@ -277,6 +277,12 @@ add_path(RelOptInfo *parent_rel, Path *new_path)
277277 ListCell * p1_prev = NULL ;
278278 ListCell * p1 ;
279279
280+ /*
281+ * This is a convenient place to check for query cancel --- no part
282+ * of the planner goes very long without calling add_path().
283+ */
284+ CHECK_FOR_INTERRUPTS ();
285+
280286 /*
281287 * Loop to check proposed new path against old paths. Note it is
282288 * possible for more than one old path to be tossed out because
You can’t perform that action at this time.
0 commit comments