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:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user