Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit798e63f

Browse files
committed
Remove CXT_printf/CXT1_printf macros. If anyone had found them to be of
any use in the past many years, we'd have made some effort to includethem in all executor node types; but in fact they were only innodeAppend.c and nodeIndexscan.c, up until I copied nodeIndexscan.c'soccurrence into the new bitmap node types. Remove some other unusedmacros in execdebug.h, too. Some day the whole header probably ought togo away in favor of better-designed facilities.
1 parent74d0cf3 commit798e63f

File tree

9 files changed

+19
-122
lines changed

9 files changed

+19
-122
lines changed

‎contrib/xml2/xpath.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,21 @@ char *pgxml_errorMsg = NULL;/* overall error message */
6565
staticvoid*
6666
pgxml_palloc(size_tsize)
6767
{
68-
/*elog(DEBUG1,"Alloc %d in CMC %x",size,CurrentMemoryContext); */
68+
/*elog(DEBUG1,"Alloc %d in CMC %p",size,CurrentMemoryContext); */
6969
returnpalloc(size);
7070
}
7171

7272
staticvoid*
7373
pgxml_repalloc(void*ptr,size_tsize)
7474
{
75-
/*elog(DEBUG1,"ReAlloc in CMC %x",CurrentMemoryContext);*/
75+
/*elog(DEBUG1,"ReAlloc in CMC %p",CurrentMemoryContext);*/
7676
returnrepalloc(ptr,size);
7777
}
7878

7979
staticvoid
8080
pgxml_pfree(void*ptr)
8181
{
82-
/*elog(DEBUG1,"Free in CMC %x",CurrentMemoryContext); */
82+
/*elog(DEBUG1,"Free in CMC %p",CurrentMemoryContext); */
8383
pfree(ptr);
8484
}
8585

‎src/backend/executor/nodeAppend.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/executor/nodeAppend.c,v 1.68 2006/03/05 15:58:26 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/executor/nodeAppend.c,v 1.69 2006/05/23 15:21:51 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -151,8 +151,6 @@ ExecInitAppend(Append *node, EState *estate, int eflags)
151151
/* check for unsupported flags */
152152
Assert(!(eflags&EXEC_FLAG_MARK));
153153

154-
CXT1_printf("ExecInitAppend: context is %d\n",CurrentMemoryContext);
155-
156154
/*
157155
* Set up empty vector of subplan states
158156
*/

‎src/backend/executor/nodeBitmapAnd.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/executor/nodeBitmapAnd.c,v 1.6 2006/03/05 15:58:26 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/executor/nodeBitmapAnd.c,v 1.7 2006/05/23 15:21:52 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -52,8 +52,6 @@ ExecInitBitmapAnd(BitmapAnd *node, EState *estate, int eflags)
5252
/* check for unsupported flags */
5353
Assert(!(eflags& (EXEC_FLAG_BACKWARD |EXEC_FLAG_MARK)));
5454

55-
CXT1_printf("ExecInitBitmapAnd: context is %d\n",CurrentMemoryContext);
56-
5755
/*
5856
* Set up empty vector of subplan states
5957
*/

‎src/backend/executor/nodeBitmapHeapscan.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
*
2323
* IDENTIFICATION
24-
* $PostgreSQL: pgsql/src/backend/executor/nodeBitmapHeapscan.c,v 1.10 2006/03/05 15:58:26 momjian Exp $
24+
* $PostgreSQL: pgsql/src/backend/executor/nodeBitmapHeapscan.c,v 1.11 2006/05/23 15:21:52 tgl Exp $
2525
*
2626
*-------------------------------------------------------------------------
2727
*/
@@ -511,8 +511,6 @@ ExecInitBitmapHeapScan(BitmapHeapScan *node, EState *estate, int eflags)
511511
ExecInitResultTupleSlot(estate,&scanstate->ss.ps);
512512
ExecInitScanTupleSlot(estate,&scanstate->ss);
513513

514-
CXT1_printf("ExecInitBitmapHeapScan: context is %d\n",CurrentMemoryContext);
515-
516514
/*
517515
* open the base relation and acquire appropriate lock on it.
518516
*/

‎src/backend/executor/nodeBitmapIndexscan.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/executor/nodeBitmapIndexscan.c,v 1.17 2006/03/05 15:58:26 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/executor/nodeBitmapIndexscan.c,v 1.18 2006/05/23 15:21:52 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -266,8 +266,6 @@ ExecInitBitmapIndexScan(BitmapIndexScan *node, EState *estate, int eflags)
266266
*/
267267
indexstate->biss_RuntimeKeysReady= false;
268268

269-
CXT1_printf("ExecInitBitmapIndexScan: context is %d\n",CurrentMemoryContext);
270-
271269
/*
272270
* build the index scan keys from the index qualification
273271
*/

‎src/backend/executor/nodeBitmapOr.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/executor/nodeBitmapOr.c,v 1.5 2006/03/05 15:58:26 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/executor/nodeBitmapOr.c,v 1.6 2006/05/23 15:21:52 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -53,8 +53,6 @@ ExecInitBitmapOr(BitmapOr *node, EState *estate, int eflags)
5353
/* check for unsupported flags */
5454
Assert(!(eflags& (EXEC_FLAG_BACKWARD |EXEC_FLAG_MARK)));
5555

56-
CXT1_printf("ExecInitBitmapOr: context is %d\n",CurrentMemoryContext);
57-
5856
/*
5957
* Set up empty vector of subplan states
6058
*/

‎src/backend/executor/nodeHash.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/executor/nodeHash.c,v 1.101 2006/03/05 15:58:26 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/executor/nodeHash.c,v 1.102 2006/05/23 15:21:52 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -123,8 +123,6 @@ ExecInitHash(Hash *node, EState *estate, int eflags)
123123
/* check for unsupported flags */
124124
Assert(!(eflags& (EXEC_FLAG_BACKWARD |EXEC_FLAG_MARK)));
125125

126-
SO_printf("ExecInitHash: initializing hash node\n");
127-
128126
/*
129127
* create state structure
130128
*/

‎src/backend/executor/nodeIndexscan.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/executor/nodeIndexscan.c,v 1.112 2006/03/05 15:58:26 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/executor/nodeIndexscan.c,v 1.113 2006/05/23 15:21:52 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -528,8 +528,6 @@ ExecInitIndexScan(IndexScan *node, EState *estate, int eflags)
528528
*/
529529
indexstate->iss_RuntimeKeysReady= false;
530530

531-
CXT1_printf("ExecInitIndexScan: context is %d\n",CurrentMemoryContext);
532-
533531
/*
534532
* build the index scan keys from the index qualification
535533
*/

‎src/include/executor/execdebug.h

Lines changed: 9 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
* execdebug.h
44
* #defines governing debugging behaviour in the executor
55
*
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+
*
69
*
710
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
811
* Portions Copyright (c) 1994, Regents of the University of California
912
*
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 $
1114
*
1215
*-------------------------------------------------------------------------
1316
*/
@@ -29,67 +32,38 @@
2932

3033
/* ----------------
3134
*EXEC_TUPLECOUNT is a #define which causes the
32-
*executor keep track of tuple counts. This might be
35+
*executortokeep track of tuple counts. This might be
3336
*causing some problems with the decstation stuff so
3437
*you might want to undefine this if you are doing work
3538
*on the decs - cim 10/20/89
3639
* ----------------
3740
#undef EXEC_TUPLECOUNT
3841
*/
3942

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-
5543
/* ----------------
5644
*EXEC_NESTLOOPDEBUG is a flag which turns on debugging of the
57-
*nest loop node by NL_printf() and ENL_printf() innestloop.c
45+
*nest loop node by NL_printf() and ENL_printf() innodeNestloop.c
5846
* ----------------
5947
#undef EXEC_NESTLOOPDEBUG
6048
*/
6149

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-
6950
/* ----------------
7051
*EXEC_EVALDEBUG is a flag which turns on debugging of
71-
*ExecEval and ExecTargetList() stuff by EV_printf() inqual.c
52+
*ExecEval and ExecTargetList() stuff by EV_printf() inexecQual.c
7253
* ----------------
7354
#undef EXEC_EVALDEBUG
7455
*/
7556

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-
8357
/* ----------------
8458
*EXEC_SORTDEBUG is a flag which turns on debugging of
85-
*the ExecSort() stuff by SO_printf() insort.c
59+
*the ExecSort() stuff by SO_printf() innodeSort.c
8660
* ----------------
8761
#undef EXEC_SORTDEBUG
8862
*/
8963

9064
/* ----------------
9165
*EXEC_MERGEJOINDEBUG is a flag which turns on debugging of
92-
*the ExecMergeJoin() stuff by MJ_printf() inmergejoin.c
66+
*the ExecMergeJoin() stuff by MJ_printf() innodeMergejoin.c
9367
* ----------------
9468
#undef EXEC_MERGEJOINDEBUG
9569
*/
@@ -139,39 +113,6 @@ extern intNIndexTupleInserted;
139113
#defineIncrIndexInserted()(void)(0)
140114
#endif/* EXEC_TUPLECOUNT */
141115

142-
/* ----------------
143-
*memory context debugging defines
144-
* ----------------
145-
*/
146-
#ifdefEXEC_CONTEXTDEBUG
147-
#defineCXT_printf(s)printf(s)
148-
#defineCXT1_printf(s,a)printf(s, a)
149-
#else
150-
#defineCXT_printf(s)
151-
#defineCXT1_printf(s,a)
152-
#endif/* EXEC_CONTEXTDEBUG */
153-
154-
/* ----------------
155-
*eutils debugging defines
156-
* ----------------
157-
*/
158-
#ifdefEXEC_UTILSDEBUG
159-
#defineEU_nodeDisplay(l)nodeDisplay(l)
160-
#defineEU_printf(s)printf(s)
161-
#defineEU1_printf(s,a)printf(s, a)
162-
#defineEU2_printf(s,a,b)printf(s, a, b)
163-
#defineEU3_printf(s,a,b,c)printf(s, a, b, c)
164-
#defineEU4_printf(s,a,b,c,d)printf(s, a, b, c, d)
165-
#else
166-
#defineEU_nodeDisplay(l)
167-
#defineEU_printf(s)
168-
#defineEU1_printf(s,a)
169-
#defineEU2_printf(s,a,b)
170-
#defineEU3_printf(s,a,b,c)
171-
#defineEU4_printf(s,a,b,c,d)
172-
#endif/* EXEC_UTILSDEBUG */
173-
174-
175116
/* ----------------
176117
*nest loop debugging defines
177118
* ----------------
@@ -180,28 +121,14 @@ extern intNIndexTupleInserted;
180121
#defineNL_nodeDisplay(l)nodeDisplay(l)
181122
#defineNL_printf(s)printf(s)
182123
#defineNL1_printf(s,a)printf(s, a)
183-
#defineNL4_printf(s,a,b,c,d)printf(s, a, b, c, d)
184124
#defineENL1_printf(message)printf("ExecNestLoop: %s\n", message)
185125
#else
186126
#defineNL_nodeDisplay(l)
187127
#defineNL_printf(s)
188128
#defineNL1_printf(s,a)
189-
#defineNL4_printf(s,a,b,c,d)
190129
#defineENL1_printf(message)
191130
#endif/* EXEC_NESTLOOPDEBUG */
192131

193-
/* ----------------
194-
*proc node debugging defines
195-
* ----------------
196-
*/
197-
#ifdefEXEC_PROCDEBUG
198-
#definePN_printf(s)printf(s)
199-
#definePN1_printf(s,p)printf(s, p)
200-
#else
201-
#definePN_printf(s)
202-
#definePN1_printf(s,p)
203-
#endif/* EXEC_PROCDEBUG */
204-
205132
/* ----------------
206133
*exec eval / target list debugging defines
207134
* ----------------
@@ -210,28 +137,12 @@ extern intNIndexTupleInserted;
210137
#defineEV_nodeDisplay(l)nodeDisplay(l)
211138
#defineEV_printf(s)printf(s)
212139
#defineEV1_printf(s,a)printf(s, a)
213-
#defineEV5_printf(s,a,b,c,d,e)printf(s, a, b, c, d, e)
214140
#else
215141
#defineEV_nodeDisplay(l)
216142
#defineEV_printf(s)
217143
#defineEV1_printf(s,a)
218-
#defineEV5_printf(s,a,b,c,d,e)
219144
#endif/* EXEC_EVALDEBUG */
220145

221-
/* ----------------
222-
*scan debugging defines
223-
* ----------------
224-
*/
225-
#ifdefEXEC_SCANDEBUG
226-
#defineS_nodeDisplay(l)nodeDisplay(l)
227-
#defineS_printf(s)printf(s)
228-
#defineS1_printf(s,p)printf(s, p)
229-
#else
230-
#defineS_nodeDisplay(l)
231-
#defineS_printf(s)
232-
#defineS1_printf(s,p)
233-
#endif/* EXEC_SCANDEBUG */
234-
235146
/* ----------------
236147
*sort node debugging defines
237148
* ----------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp