3
3
* execdebug.h
4
4
* #defines governing debugging behaviour in the executor
5
5
*
6
+ * XXX this is all pretty old and crufty. Newer code tends to use elog()
7
+ * for debug printouts, because that's more flexible than printf().
8
+ *
6
9
*
7
10
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
8
11
* Portions Copyright (c) 1994, Regents of the University of California
9
12
*
10
- * $PostgreSQL: pgsql/src/include/executor/execdebug.h,v 1.29 2006/03/05 15:58:56 momjian Exp $
13
+ * $PostgreSQL: pgsql/src/include/executor/execdebug.h,v 1.30 2006/05/23 15:21:52 tgl Exp $
11
14
*
12
15
*-------------------------------------------------------------------------
13
16
*/
29
32
30
33
/* ----------------
31
34
* EXEC_TUPLECOUNT is a #define which causes the
32
- * executor keep track of tuple counts. This might be
35
+ * executor to keep track of tuple counts. This might be
33
36
* causing some problems with the decstation stuff so
34
37
* you might want to undefine this if you are doing work
35
38
* on the decs - cim 10/20/89
36
39
* ----------------
37
40
#undef EXEC_TUPLECOUNT
38
41
*/
39
42
40
- /* ----------------
41
- * EXEC_CONTEXTDEBUG turns on the printing of debugging information
42
- * by CXT_printf() calls regarding which memory context is the
43
- * CurrentMemoryContext for palloc() calls.
44
- * ----------------
45
- #undef EXEC_CONTEXTDEBUG
46
- */
47
-
48
- /* ----------------
49
- * EXEC_UTILSDEBUG is a flag which turns on debugging of the
50
- * executor utilities by EU_printf() in eutils.c
51
- * ----------------
52
- #undef EXEC_UTILSDEBUG
53
- */
54
-
55
43
/* ----------------
56
44
* EXEC_NESTLOOPDEBUG is a flag which turns on debugging of the
57
- * nest loop node by NL_printf() and ENL_printf() in nestloop .c
45
+ * nest loop node by NL_printf() and ENL_printf() in nodeNestloop .c
58
46
* ----------------
59
47
#undef EXEC_NESTLOOPDEBUG
60
48
*/
61
49
62
- /* ----------------
63
- * EXEC_PROCDEBUG is a flag which turns on debugging of
64
- * ExecProcNode() by PN_printf() in procnode.c
65
- * ----------------
66
- #undef EXEC_PROCDEBUG
67
- */
68
-
69
50
/* ----------------
70
51
* EXEC_EVALDEBUG is a flag which turns on debugging of
71
- * ExecEval and ExecTargetList() stuff by EV_printf() in qual .c
52
+ * ExecEval and ExecTargetList() stuff by EV_printf() in execQual .c
72
53
* ----------------
73
54
#undef EXEC_EVALDEBUG
74
55
*/
75
56
76
- /* ----------------
77
- * EXEC_SCANDEBUG is a flag which turns on debugging of
78
- * the ExecSeqScan() stuff by S_printf() in seqscan.c
79
- * ----------------
80
- #undef EXEC_SCANDEBUG
81
- */
82
-
83
57
/* ----------------
84
58
* EXEC_SORTDEBUG is a flag which turns on debugging of
85
- * the ExecSort() stuff by SO_printf() in sort .c
59
+ * the ExecSort() stuff by SO_printf() in nodeSort .c
86
60
* ----------------
87
61
#undef EXEC_SORTDEBUG
88
62
*/
89
63
90
64
/* ----------------
91
65
* EXEC_MERGEJOINDEBUG is a flag which turns on debugging of
92
- * the ExecMergeJoin() stuff by MJ_printf() in mergejoin .c
66
+ * the ExecMergeJoin() stuff by MJ_printf() in nodeMergejoin .c
93
67
* ----------------
94
68
#undef EXEC_MERGEJOINDEBUG
95
69
*/
@@ -139,39 +113,6 @@ extern int NIndexTupleInserted;
139
113
#define IncrIndexInserted () (void)(0)
140
114
#endif /* EXEC_TUPLECOUNT */
141
115
142
- /* ----------------
143
- * memory context debugging defines
144
- * ----------------
145
- */
146
- #ifdef EXEC_CONTEXTDEBUG
147
- #define CXT_printf (s ) printf(s)
148
- #define CXT1_printf (s , a ) printf(s, a)
149
- #else
150
- #define CXT_printf (s )
151
- #define CXT1_printf (s , a )
152
- #endif /* EXEC_CONTEXTDEBUG */
153
-
154
- /* ----------------
155
- * eutils debugging defines
156
- * ----------------
157
- */
158
- #ifdef EXEC_UTILSDEBUG
159
- #define EU_nodeDisplay (l ) nodeDisplay(l)
160
- #define EU_printf (s ) printf(s)
161
- #define EU1_printf (s , a ) printf(s, a)
162
- #define EU2_printf (s , a , b ) printf(s, a, b)
163
- #define EU3_printf (s , a , b , c ) printf(s, a, b, c)
164
- #define EU4_printf (s , a , b , c , d ) printf(s, a, b, c, d)
165
- #else
166
- #define EU_nodeDisplay (l )
167
- #define EU_printf (s )
168
- #define EU1_printf (s , a )
169
- #define EU2_printf (s , a , b )
170
- #define EU3_printf (s , a , b , c )
171
- #define EU4_printf (s , a , b , c , d )
172
- #endif /* EXEC_UTILSDEBUG */
173
-
174
-
175
116
/* ----------------
176
117
* nest loop debugging defines
177
118
* ----------------
@@ -180,28 +121,14 @@ extern int NIndexTupleInserted;
180
121
#define NL_nodeDisplay (l ) nodeDisplay(l)
181
122
#define NL_printf (s ) printf(s)
182
123
#define NL1_printf (s , a ) printf(s, a)
183
- #define NL4_printf (s , a , b , c , d ) printf(s, a, b, c, d)
184
124
#define ENL1_printf (message ) printf("ExecNestLoop: %s\n", message)
185
125
#else
186
126
#define NL_nodeDisplay (l )
187
127
#define NL_printf (s )
188
128
#define NL1_printf (s , a )
189
- #define NL4_printf (s , a , b , c , d )
190
129
#define ENL1_printf (message )
191
130
#endif /* EXEC_NESTLOOPDEBUG */
192
131
193
- /* ----------------
194
- * proc node debugging defines
195
- * ----------------
196
- */
197
- #ifdef EXEC_PROCDEBUG
198
- #define PN_printf (s ) printf(s)
199
- #define PN1_printf (s , p ) printf(s, p)
200
- #else
201
- #define PN_printf (s )
202
- #define PN1_printf (s , p )
203
- #endif /* EXEC_PROCDEBUG */
204
-
205
132
/* ----------------
206
133
* exec eval / target list debugging defines
207
134
* ----------------
@@ -210,28 +137,12 @@ extern int NIndexTupleInserted;
210
137
#define EV_nodeDisplay (l ) nodeDisplay(l)
211
138
#define EV_printf (s ) printf(s)
212
139
#define EV1_printf (s , a ) printf(s, a)
213
- #define EV5_printf (s , a , b , c , d , e ) printf(s, a, b, c, d, e)
214
140
#else
215
141
#define EV_nodeDisplay (l )
216
142
#define EV_printf (s )
217
143
#define EV1_printf (s , a )
218
- #define EV5_printf (s , a , b , c , d , e )
219
144
#endif /* EXEC_EVALDEBUG */
220
145
221
- /* ----------------
222
- * scan debugging defines
223
- * ----------------
224
- */
225
- #ifdef EXEC_SCANDEBUG
226
- #define S_nodeDisplay (l ) nodeDisplay(l)
227
- #define S_printf (s ) printf(s)
228
- #define S1_printf (s , p ) printf(s, p)
229
- #else
230
- #define S_nodeDisplay (l )
231
- #define S_printf (s )
232
- #define S1_printf (s , p )
233
- #endif /* EXEC_SCANDEBUG */
234
-
235
146
/* ----------------
236
147
* sort node debugging defines
237
148
* ----------------
0 commit comments