1
0
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:
Bruce Momjian
2006-05-30 14:01:58 +00:00
parent 53d669e5c6
commit 87bd07d979
8 changed files with 149 additions and 54 deletions

View File

@ -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;
}