1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-14 18:42:34 +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

@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/trigger.c,v 1.201 2006/04/27 00:33:41 momjian Exp $
* $PostgreSQL: pgsql/src/backend/commands/trigger.c,v 1.202 2006/05/30 14:01:57 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -1306,7 +1306,7 @@ ExecCallTriggerFunc(TriggerData *trigdata,
* one "tuple returned" (really the number of firings).
*/
if (instr)
InstrStopNode(instr + tgindx, true);
InstrStopNode(instr + tgindx, 1);
return (HeapTuple) DatumGetPointer(result);
}
@ -2154,7 +2154,7 @@ AfterTriggerExecute(AfterTriggerEvent event,
* one "tuple returned" (really the number of firings).
*/
if (instr)
InstrStopNode(instr + tgindx, true);
InstrStopNode(instr + tgindx, 1);
}