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

Commit87b48ff

Browse files
committed
D'Arcy's cleanups
1 parent716d506 commit87b48ff

File tree

6 files changed

+19
-12
lines changed

6 files changed

+19
-12
lines changed

‎src/backend/executor/execMain.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*
2727
*
2828
* IDENTIFICATION
29-
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.5 1996/10/23 07:40:26 scrappy Exp $
29+
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.6 1996/10/26 04:13:05 scrappy Exp $
3030
*
3131
*-------------------------------------------------------------------------
3232
*/
@@ -37,6 +37,7 @@
3737
#include"utils/acl.h"
3838
#include"parser/parsetree.h"/* rt_fetch() */
3939
#include"storage/bufmgr.h"
40+
#include"storage/lmgr.h"
4041
#include"commands/async.h"
4142
/* #include "access/localam.h" */
4243
#include"optimizer/var.h"

‎src/backend/executor/execQual.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.6 1996/10/10 00:18:52 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.7 1996/10/26 04:13:11 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -918,7 +918,7 @@ ExecEvalOr(Expr *orExpr, ExprContext *econtext, bool *isNull)
918918
List*clause;
919919
boolisDone;
920920
boolIsNull;
921-
Datumconst_value;
921+
Datumconst_value=0;
922922

923923
IsNull= false;
924924
clauses=orExpr->args;
@@ -979,7 +979,7 @@ ExecEvalAnd(Expr *andExpr, ExprContext *econtext, bool *isNull)
979979
{
980980
List*clauses;
981981
List*clause;
982-
Datumconst_value;
982+
Datumconst_value=0;
983983
boolisDone;
984984
boolIsNull;
985985

@@ -1056,7 +1056,7 @@ ExecEvalExpr(Node *expression,
10561056
bool*isNull,
10571057
bool*isDone)
10581058
{
1059-
DatumretDatum;
1059+
DatumretDatum=0;
10601060

10611061
*isNull= false;
10621062

‎src/backend/executor/functions.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/executor/functions.c,v 1.2 1996/09/16 05:36:15 scrappy Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/executor/functions.c,v 1.3 1996/10/26 04:13:20 scrappy Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -23,6 +23,7 @@
2323
#include"parser/parse_query.h"
2424
#include"tcop/pquery.h"
2525
#include"tcop/tcopprot.h"
26+
#include"tcop/utility.h"
2627
#include"nodes/params.h"
2728
#include"fmgr.h"
2829
#include"utils/fcache.h"
@@ -352,7 +353,7 @@ Datum
352353
postquel_function(Func*funcNode,char**args,bool*isNull,bool*isDone)
353354
{
354355
execution_state*es;
355-
Datumresult;
356+
Datumresult=0;
356357
FunctionCachePtrfcache=funcNode->func_fcache;
357358

358359
es= (execution_state*)fcache->func_state;

‎src/backend/executor/nodeAppend.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/executor/nodeAppend.c,v 1.1.1.1 1996/07/09 06:21:26 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/executor/nodeAppend.c,v 1.2 1996/10/26 04:13:26 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -171,7 +171,7 @@ ExecInitAppend(Append *node, EState *estate, Plan *parent)
171171
{
172172
AppendState*unionstate;
173173
intnplans;
174-
List*resultList;
174+
List*resultList=NULL;
175175
List*rtentries;
176176
List*unionplans;
177177
bool*initialized;

‎src/backend/executor/nodeHash.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/executor/nodeHash.c,v 1.4 1996/08/19 01:52:36 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/executor/nodeHash.c,v 1.5 1996/10/26 04:13:31 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -22,13 +22,15 @@
2222
#include<stdio.h>/* for sprintf() */
2323
#include<math.h>
2424
#include<sys/file.h>
25+
2526
#include"storage/fd.h"/* for SEEK_ */
2627
#include"storage/ipc.h"
2728
#include"storage/bufmgr.h"/* for BLCKSZ */
2829
#include"executor/executor.h"
2930
#include"executor/nodeHash.h"
3031
#include"executor/nodeHashjoin.h"
3132
#include"utils/palloc.h"
33+
#include"utils/hsearch.h"
3234

3335
externintNBuffers;
3436
staticintHashTBSize;
@@ -55,7 +57,7 @@ ExecHash(Hash *node)
5557
ExprContext*econtext;
5658

5759
intnbatch;
58-
File*batches;
60+
File*batches=NULL;
5961
RelativeAddr*batchPos;
6062
int*batchSizes;
6163
inti;

‎src/include/storage/bufmgr.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,18 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: bufmgr.h,v 1.3 1996/10/20 06:35:20 scrappy Exp $
9+
* $Id: bufmgr.h,v 1.4 1996/10/26 04:15:05 scrappy Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
1313
#ifndefBUFMGR_H
1414
#defineBUFMGR_H
1515

1616
#include<stdio.h>
17+
1718
#include"storage/ipc.h"
19+
#include"storage/buf.h"
20+
#include"utils/rel.h"
1821

1922
/*
2023
* the maximum size of a disk block for any possible installation.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp