1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-11 20:28:21 +03:00

Add a CHECK_FOR_INTERRUPTS() to the loop in ExecMakeTableFunctionResult.

Otherwise you can't cancel queries like select ... from generate_series(1,1000000).
This commit is contained in:
Tom Lane
2006-03-10 01:51:34 +00:00
parent 0a5c6fadf4
commit 98ab0c96dd

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/executor/execQual.c,v 1.183.2.2 2005/12/14 16:28:48 tgl Exp $
* $PostgreSQL: pgsql/src/backend/executor/execQual.c,v 1.183.2.3 2006/03/10 01:51:34 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -1294,6 +1294,8 @@ ExecMakeTableFunctionResult(ExprState *funcexpr,
Datum result;
HeapTuple tuple;
CHECK_FOR_INTERRUPTS();
/*
* reset per-tuple memory context before each call of the function or
* expression. This cleans up any local memory the function may leak