mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Make EXPLAIN sampling smarter, to avoid excessive sampling delay.
Martijn van Oosterhout
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/executor/execProcnode.c,v 1.54 2006/03/05 15:58:26 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/executor/execProcnode.c,v 1.55 2006/05/30 14:01:57 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -423,7 +423,7 @@ ExecProcNode(PlanState *node)
|
||||
}
|
||||
|
||||
if (node->instrument)
|
||||
InstrStopNode(node->instrument, !TupIsNull(result));
|
||||
InstrStopNode(node->instrument, TupIsNull(result) ? 0 : 1 );
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user