aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeSort.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2009-04-02 19:14:34 +0000
committerBruce Momjian <bruce@momjian.us>2009-04-02 19:14:34 +0000
commit227f817c1fc73958b0854809b9b7a4758b29cc42 (patch)
tree09a0411fec86e4308a0a559b4a4382ea3f38196a /src/backend/executor/nodeSort.c
parent3df4fa6968e6f71d137d690171e3d4cd07bdf206 (diff)
downloadpostgresql-227f817c1fc73958b0854809b9b7a4758b29cc42.tar.gz
postgresql-227f817c1fc73958b0854809b9b7a4758b29cc42.zip
Add support for additional DTrace probes.
Robert Lor
Diffstat (limited to 'src/backend/executor/nodeSort.c')
-rw-r--r--src/backend/executor/nodeSort.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/executor/nodeSort.c b/src/backend/executor/nodeSort.c
index 6571730874c..8181dbd6a6f 100644
--- a/src/backend/executor/nodeSort.c
+++ b/src/backend/executor/nodeSort.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/executor/nodeSort.c,v 1.63 2009/01/01 17:23:42 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/executor/nodeSort.c,v 1.64 2009/04/02 19:14:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -18,6 +18,7 @@
#include "executor/execdebug.h"
#include "executor/nodeSort.h"
#include "miscadmin.h"
+#include "pg_trace.h"
#include "utils/tuplesort.h"
@@ -53,6 +54,8 @@ ExecSort(SortState *node)
dir = estate->es_direction;
tuplesortstate = (Tuplesortstate *) node->tuplesortstate;
+ TRACE_POSTGRESQL_EXECUTOR_SORT((uintptr_t)node, dir);
+
/*
* If first time through, read all tuples from outer plan and pass them to
* tuplesort.c. Subsequent calls just fetch tuples from tuplesort.