Commit fcff1cdf authored by Bruce Momjian's avatar Bruce Momjian

Another pgindent run. Sorry folks.

parent 4eadfe87
......@@ -24,7 +24,8 @@
#endif
#ifndef HAVE_64BIT_INTS
typedef char[8] int64;
typedef char[8]
int64;
#elif defined(__alpha)
typedef long int int64;
......@@ -43,38 +44,38 @@ typedef long int int64;
#endif
int64 *int8in(char *str);
char *int8out(int64 * val);
bool int8eq(int64 * val1, int64 * val2);
bool int8ne(int64 * val1, int64 * val2);
bool int8lt(int64 * val1, int64 * val2);
bool int8gt(int64 * val1, int64 * val2);
bool int8le(int64 * val1, int64 * val2);
bool int8ge(int64 * val1, int64 * val2);
bool int84eq(int64 * val1, int32 val2);
bool int84ne(int64 * val1, int32 val2);
bool int84lt(int64 * val1, int32 val2);
bool int84gt(int64 * val1, int32 val2);
bool int84le(int64 * val1, int32 val2);
bool int84ge(int64 * val1, int32 val2);
int64 *int8um(int64 * val);
int64 *int8pl(int64 * val1, int64 * val2);
int64 *int8mi(int64 * val1, int64 * val2);
int64 *int8mul(int64 * val1, int64 * val2);
int64 *int8div(int64 * val1, int64 * val2);
char *int8out(int64 *val);
bool int8eq(int64 *val1, int64 *val2);
bool int8ne(int64 *val1, int64 *val2);
bool int8lt(int64 *val1, int64 *val2);
bool int8gt(int64 *val1, int64 *val2);
bool int8le(int64 *val1, int64 *val2);
bool int8ge(int64 *val1, int64 *val2);
bool int84eq(int64 *val1, int32 val2);
bool int84ne(int64 *val1, int32 val2);
bool int84lt(int64 *val1, int32 val2);
bool int84gt(int64 *val1, int32 val2);
bool int84le(int64 *val1, int32 val2);
bool int84ge(int64 *val1, int32 val2);
int64 *int8um(int64 *val);
int64 *int8pl(int64 *val1, int64 *val2);
int64 *int8mi(int64 *val1, int64 *val2);
int64 *int8mul(int64 *val1, int64 *val2);
int64 *int8div(int64 *val1, int64 *val2);
int64 *int48(int32 val);
int32 int84(int64 * val);
int32 int84(int64 *val);
#if FALSE
int64 *int28 (int16 val);
int16 int82(int64 * val);
int16 int82(int64 *val);
#endif
float64 i8tod(int64 * val);
float64 i8tod(int64 *val);
int64 *dtoi8(float64 val);
/***********************************************************************
......@@ -113,7 +114,7 @@ int8in(char *str)
/* int8out()
*/
char *
int8out(int64 * val)
int8out(int64 *val)
{
char *result;
......@@ -148,37 +149,37 @@ int8out(int64 * val)
* Is val1 relop val2?
*/
bool
int8eq(int64 * val1, int64 * val2)
int8eq(int64 *val1, int64 *val2)
{
return (*val1 == *val2);
} /* int8eq() */
bool
int8ne(int64 * val1, int64 * val2)
int8ne(int64 *val1, int64 *val2)
{
return (*val1 != *val2);
} /* int8ne() */
bool
int8lt(int64 * val1, int64 * val2)
int8lt(int64 *val1, int64 *val2)
{
return (*val1 < *val2);
} /* int8lt() */
bool
int8gt(int64 * val1, int64 * val2)
int8gt(int64 *val1, int64 *val2)
{
return (*val1 > *val2);
} /* int8gt() */
bool
int8le(int64 * val1, int64 * val2)
int8le(int64 *val1, int64 *val2)
{
return (*val1 <= *val2);
} /* int8le() */
bool
int8ge(int64 * val1, int64 * val2)
int8ge(int64 *val1, int64 *val2)
{
return (*val1 >= *val2);
} /* int8ge() */
......@@ -188,37 +189,37 @@ int8ge(int64 * val1, int64 * val2)
* Is 64-bit val1 relop 32-bit val2?
*/
bool
int84eq(int64 * val1, int32 val2)
int84eq(int64 *val1, int32 val2)
{
return (*val1 == val2);
} /* int84eq() */
bool
int84ne(int64 * val1, int32 val2)
int84ne(int64 *val1, int32 val2)
{
return (*val1 != val2);
} /* int84ne() */
bool
int84lt(int64 * val1, int32 val2)
int84lt(int64 *val1, int32 val2)
{
return (*val1 < val2);
} /* int84lt() */
bool
int84gt(int64 * val1, int32 val2)
int84gt(int64 *val1, int32 val2)
{
return (*val1 > val2);
} /* int84gt() */
bool
int84le(int64 * val1, int32 val2)
int84le(int64 *val1, int32 val2)
{
return (*val1 <= val2);
} /* int84le() */
bool
int84ge(int64 * val1, int32 val2)
int84ge(int64 *val1, int32 val2)
{
return (*val1 >= val2);
} /* int84ge() */
......@@ -229,7 +230,7 @@ int84ge(int64 * val1, int32 val2)
*---------------------------------------------------------*/
int64 *
int8um(int64 * val)
int8um(int64 *val)
{
int64 *result = palloc(sizeof(int64));
......@@ -242,7 +243,7 @@ int8um(int64 * val)
} /* int8um() */
int64 *
int8pl(int64 * val1, int64 * val2)
int8pl(int64 *val1, int64 *val2)
{
int64 *result = palloc(sizeof(int64));
......@@ -255,7 +256,7 @@ int8pl(int64 * val1, int64 * val2)
} /* int8pl() */
int64 *
int8mi(int64 * val1, int64 * val2)
int8mi(int64 *val1, int64 *val2)
{
int64 *result = palloc(sizeof(int64));
......@@ -268,7 +269,7 @@ int8mi(int64 * val1, int64 * val2)
} /* int8mi() */
int64 *
int8mul(int64 * val1, int64 * val2)
int8mul(int64 *val1, int64 *val2)
{
int64 *result = palloc(sizeof(int64));
......@@ -281,7 +282,7 @@ int8mul(int64 * val1, int64 * val2)
} /* int8mul() */
int64 *
int8div(int64 * val1, int64 * val2)
int8div(int64 *val1, int64 *val2)
{
int64 *result = palloc(sizeof(int64));
......@@ -309,7 +310,7 @@ int48(int32 val)
} /* int48() */
int32
int84(int64 * val)
int84(int64 *val)
{
int32 result;
......@@ -339,7 +340,7 @@ int28 (int16 val)
} /* int28() */
int16
int82(int64 * val)
int82(int64 *val)
{
int16 result;
......@@ -354,7 +355,7 @@ int82(int64 * val)
#endif
float64
i8tod(int64 * val)
i8tod(int64 *val)
{
float64 result = palloc(sizeof(float64data));
......
......@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.46 1999/05/25 16:06:39 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.47 1999/05/25 22:40:47 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -25,9 +25,9 @@
#include "libpq/pqformat.h"
#include "utils/syscache.h"
static void printtup_setup(DestReceiver * self, TupleDesc typeinfo);
static void printtup(HeapTuple tuple, TupleDesc typeinfo, DestReceiver * self);
static void printtup_cleanup(DestReceiver * self);
static void printtup_setup(DestReceiver *self, TupleDesc typeinfo);
static void printtup(HeapTuple tuple, TupleDesc typeinfo, DestReceiver *self);
static void printtup_cleanup(DestReceiver *self);
/* ----------------------------------------------------------------
* printtup / debugtup support
......@@ -107,7 +107,7 @@ printtup_create_DR()
}
static void
printtup_setup(DestReceiver * self, TupleDesc typeinfo)
printtup_setup(DestReceiver *self, TupleDesc typeinfo)
{
/* ----------------
* We could set up the derived attr info at this time, but we postpone it
......@@ -123,7 +123,7 @@ printtup_setup(DestReceiver * self, TupleDesc typeinfo)
}
static void
printtup_prepare_info(DR_printtup * myState, TupleDesc typeinfo, int numAttrs)
printtup_prepare_info(DR_printtup *myState, TupleDesc typeinfo, int numAttrs)
{
int i;
......@@ -151,7 +151,7 @@ printtup_prepare_info(DR_printtup * myState, TupleDesc typeinfo, int numAttrs)
* ----------------
*/
static void
printtup(HeapTuple tuple, TupleDesc typeinfo, DestReceiver * self)
printtup(HeapTuple tuple, TupleDesc typeinfo, DestReceiver *self)
{
DR_printtup *myState = (DR_printtup *) self;
StringInfoData buf;
......@@ -228,7 +228,7 @@ printtup(HeapTuple tuple, TupleDesc typeinfo, DestReceiver * self)
* ----------------
*/
static void
printtup_cleanup(DestReceiver * self)
printtup_cleanup(DestReceiver *self)
{
DR_printtup *myState = (DR_printtup *) self;
......@@ -280,7 +280,7 @@ showatts(char *name, TupleDesc tupleDesc)
* ----------------
*/
void
debugtup(HeapTuple tuple, TupleDesc typeinfo, DestReceiver * self)
debugtup(HeapTuple tuple, TupleDesc typeinfo, DestReceiver *self)
{
int i;
Datum attr;
......@@ -316,7 +316,7 @@ debugtup(HeapTuple tuple, TupleDesc typeinfo, DestReceiver * self)
* ----------------
*/
void
printtup_internal(HeapTuple tuple, TupleDesc typeinfo, DestReceiver * self)
printtup_internal(HeapTuple tuple, TupleDesc typeinfo, DestReceiver *self)
{
StringInfoData buf;
int i,
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.49 1999/05/25 16:06:42 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.50 1999/05/25 22:40:48 momjian Exp $
*
* NOTES
* some of the executor utility code such as "ExecTypeFromTL" should be
......@@ -75,7 +75,7 @@ CreateTemplateTupleDesc(int natts)
* ----------------------------------------------------------------
*/
TupleDesc
CreateTupleDesc(int natts, Form_pg_attribute * attrs)
CreateTupleDesc(int natts, Form_pg_attribute *attrs)
{
TupleDesc desc;
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashfunc.c,v 1.17 1999/05/25 16:06:56 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashfunc.c,v 1.18 1999/05/25 22:40:49 momjian Exp $
*
* NOTES
* These functions are stored in pg_amproc. For each operator class
......@@ -34,7 +34,7 @@ hashint4(uint32 key)
}
uint32
hashint8(int64 * key)
hashint8(int64 *key)
{
return ~((uint32) *key);
}
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtcompare.c,v 1.23 1999/05/25 16:07:21 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtcompare.c,v 1.24 1999/05/25 22:40:50 momjian Exp $
*
* NOTES
* These functions are stored in pg_amproc. For each operator class
......@@ -40,7 +40,7 @@ btint4cmp(int32 a, int32 b)
}
int32
btint8cmp(int64 * a, int64 * b)
btint8cmp(int64 *a, int64 *b)
{
if (*a > *b)
return 1;
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/_deadcode/Attic/recipe.c,v 1.3 1999/05/25 16:08:30 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/_deadcode/Attic/recipe.c,v 1.4 1999/05/25 22:40:56 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -61,11 +61,11 @@ typedef struct _teeInfo
TeePlanInfo *val;
} TeeInfo;
QueryTreeList *appendQlist(QueryTreeList *q1, QueryTreeList *q2);
QueryTreeList *appendQlist(QueryTreeList * q1, QueryTreeList * q2);
void OffsetVarAttno(Node *node, int varno, int offset);
static void appendTeeQuery(TeeInfo * teeInfo,
QueryTreeList *q,
QueryTreeList * q,
char *teeNodeName);
static Plan *replaceTeeScans(Plan *plan,
......@@ -77,21 +77,21 @@ static void replaceSeqScan(Plan *plan,
Plan *tplan);
static void tg_rewriteQuery(TgRecipe * r, TgNode * n,
QueryTreeList *q,
QueryTreeList *inputQlist);
QueryTreeList * q,
QueryTreeList * inputQlist);
static Node *tg_replaceNumberedParam(Node *expression,
int pnum,
int rt_ind,
char *teeRelName);
static Node *tg_rewriteParamsInExpr(Node *expression,
QueryTreeList *inputQlist);
QueryTreeList * inputQlist);
static QueryTreeList *tg_parseSubQuery(TgRecipe * r,
TgNode * n,
TeeInfo * teeInfo);
static QueryTreeList *tg_parseTeeNode(TgRecipe * r,
TgNode * n,
int i,
QueryTreeList *qList,
QueryTreeList * qList,
TeeInfo * teeInfo);
......@@ -309,8 +309,8 @@ beginRecipe(RecipeStmt *stmt)
static void
tg_rewriteQuery(TgRecipe * r,
TgNode * n,
QueryTreeList *q,
QueryTreeList *inputQlist)
QueryTreeList * q,
QueryTreeList * inputQlist)
{
Query *orig;
Query *inputQ;
......@@ -563,7 +563,7 @@ tg_replaceNumberedParam(Node *expression,
*/
static Node *
tg_rewriteParamsInExpr(Node *expression, QueryTreeList *inputQlist)
tg_rewriteParamsInExpr(Node *expression, QueryTreeList * inputQlist)
{
List *tl;
TargetEntry *param_tle,
......@@ -737,7 +737,7 @@ static QueryTreeList *
tg_parseTeeNode(TgRecipe * r,
TgNode * n, /* the tee node */
int i, /* which input this node is to its parent */
QueryTreeList *qList,
QueryTreeList * qList,
TeeInfo * teeInfo)
{
......@@ -1122,7 +1122,7 @@ OffsetVarAttno(Node *node, int varno, int offset)
*/
QueryTreeList *
appendQlist(QueryTreeList *q1, QueryTreeList *q2)
appendQlist(QueryTreeList * q1, QueryTreeList * q2)
{
QueryTreeList *newq;
int i,
......@@ -1152,7 +1152,7 @@ appendQlist(QueryTreeList *q1, QueryTreeList *q2)
* modify the query field of the teeInfo list of the particular tee node
*/
static void
appendTeeQuery(TeeInfo * teeInfo, QueryTreeList *q, char *teeNodeName)
appendTeeQuery(TeeInfo * teeInfo, QueryTreeList * q, char *teeNodeName)
{
int i;
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.45 1999/05/25 16:08:17 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.46 1999/05/25 22:40:54 momjian Exp $
*
* NOTES
* The PortalExecutorHeapMemory crap needs to be eliminated
......@@ -519,7 +519,7 @@ PerformAddAttribute(char *relationName,
}
void
LockTableCommand(LockStmt * lockstmt)
LockTableCommand(LockStmt *lockstmt)
{
Relation rel;
int aclresult;
......
......@@ -14,7 +14,7 @@
* ExecInitTee
* ExecEndTee
*
* $Id: nodeTee.c,v 1.2 1999/05/25 16:08:50 momjian Exp $
* $Id: nodeTee.c,v 1.3 1999/05/25 22:41:04 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -44,7 +44,7 @@
* ------------------------------------------------------------------
*/
bool
ExecInitTee(Tee *node, EState *currentEstate, Plan *parent)
ExecInitTee(Tee * node, EState *currentEstate, Plan *parent)
{
TeeState *teeState;
Plan *outerPlan;
......@@ -207,7 +207,7 @@ ExecInitTee(Tee *node, EState *currentEstate, Plan *parent)
}
int
ExecCountSlotsTee(Tee *node)
ExecCountSlotsTee(Tee * node)
{
/* Tee nodes can't have innerPlans */
return ExecCountSlotsNode(outerPlan(node)) + TEE_NSLOTS;
......@@ -223,7 +223,7 @@ ExecCountSlotsTee(Tee *node)
* ----------------------------------------------------------------
*/
static void
initTeeScanDescs(Tee *node)
initTeeScanDescs(Tee * node)
{
TeeState *teeState;
Relation bufferRel;
......@@ -285,7 +285,7 @@ initTeeScanDescs(Tee *node)
*/
TupleTableSlot *
ExecTee(Tee *node, Plan *parent)
ExecTee(Tee * node, Plan *parent)
{
EState *estate;
TeeState *teeState;
......@@ -437,7 +437,7 @@ ExecTee(Tee *node, Plan *parent)
*/
void
ExecEndTee(Tee *node, Plan *parent)
ExecEndTee(Tee * node, Plan *parent)
{
EState *estate;
TeeState *teeState;
......
......@@ -26,7 +26,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.84 1999/05/25 16:08:36 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.85 1999/05/25 22:40:57 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -71,9 +71,9 @@ static TupleTableSlot *ExecutePlan(EState *estate, Plan *plan,
int offsetTuples,
int numberTuples,
ScanDirection direction,
DestReceiver * destfunc);
DestReceiver *destfunc);
static void ExecRetrieve(TupleTableSlot *slot,
DestReceiver * destfunc,
DestReceiver *destfunc,
EState *estate);
static void ExecAppend(TupleTableSlot *slot, ItemPointer tupleid,
EState *estate);
......@@ -884,7 +884,7 @@ ExecutePlan(EState *estate,
int offsetTuples,
int numberTuples,
ScanDirection direction,
DestReceiver * destfunc)
DestReceiver *destfunc)
{
JunkFilter *junkfilter;
TupleTableSlot *slot;
......@@ -1124,7 +1124,7 @@ lnext: ;
*/
static void
ExecRetrieve(TupleTableSlot *slot,
DestReceiver * destfunc,
DestReceiver *destfunc,
EState *estate)
{
HeapTuple tuple;
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.51 1999/05/25 16:08:37 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.52 1999/05/25 22:40:59 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -66,7 +66,7 @@ bool execConstByVal;
int execConstLen;
/* static functions decls */
static Datum ExecEvalAggref(Aggref * aggref, ExprContext *econtext, bool *isNull);
static Datum ExecEvalAggref(Aggref *aggref, ExprContext *econtext, bool *isNull);
static Datum ExecEvalArrayRef(ArrayRef *arrayRef, ExprContext *econtext,
bool *isNull, bool *isDone);
static Datum ExecEvalAnd(Expr *andExpr, ExprContext *econtext, bool *isNull);
......@@ -190,7 +190,7 @@ ExecEvalArrayRef(ArrayRef *arrayRef,
* ----------------------------------------------------------------
*/
static Datum
ExecEvalAggref(Aggref * aggref, ExprContext *econtext, bool *isNull)
ExecEvalAggref(Aggref *aggref, ExprContext *econtext, bool *isNull)
{
*isNull = econtext->ecxt_nulls[aggref->aggno];
return econtext->ecxt_values[aggref->aggno];
......@@ -1097,7 +1097,7 @@ ExecEvalAnd(Expr *andExpr, ExprContext *econtext, bool *isNull)
* ----------------------------------------------------------------
*/
static Datum
ExecEvalCase(CaseExpr * caseExpr, ExprContext *econtext, bool *isNull)
ExecEvalCase(CaseExpr *caseExpr, ExprContext *econtext, bool *isNull)
{
List *clauses;
List *clause;
......
......@@ -45,7 +45,7 @@ typedef struct AggFuncInfo
FmgrInfo finalfn;
} AggFuncInfo;
static Datum aggGetAttr(TupleTableSlot *tuple, Aggref * aggref, bool *isNull);
static Datum aggGetAttr(TupleTableSlot *tuple, Aggref *aggref, bool *isNull);
/* ---------------------------------------
......@@ -582,7 +582,7 @@ ExecEndAgg(Agg *node)
*/
static Datum
aggGetAttr(TupleTableSlot *slot,
Aggref * aggref,
Aggref *aggref,
bool *isNull)
{
Datum result;
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/nodeHashjoin.c,v 1.21 1999/05/25 16:08:42 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/nodeHashjoin.c,v 1.22 1999/05/25 22:41:01 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -25,7 +25,7 @@
static TupleTableSlot *ExecHashJoinOuterGetTuple(Plan *node, Plan *parent,
HashJoinState *hjstate);
static TupleTableSlot *ExecHashJoinGetSavedTuple(HashJoinState *hjstate,
BufFile * file,
BufFile *file,
TupleTableSlot *tupleSlot);
static int ExecHashJoinGetBatch(int bucketno, HashJoinTable hashtable);
static int ExecHashJoinNewBatch(HashJoinState *hjstate);
......@@ -478,7 +478,7 @@ ExecHashJoinOuterGetTuple(Plan *node, Plan *parent, HashJoinState *hjstate)
static TupleTableSlot *
ExecHashJoinGetSavedTuple(HashJoinState *hjstate,
BufFile * file,
BufFile *file,
TupleTableSlot *tupleSlot)
{
HeapTupleData htup;
......@@ -625,7 +625,7 @@ ExecHashJoinGetBatch(int bucketno, HashJoinTable hashtable)
void
ExecHashJoinSaveTuple(HeapTuple heapTuple,
BufFile * file)
BufFile *file)
{
size_t written;
......
......@@ -3,7 +3,7 @@
* spi.c
* Server Programming Interface
*
* $Id: spi.c,v 1.38 1999/05/25 16:08:48 momjian Exp $
* $Id: spi.c,v 1.39 1999/05/25 22:41:02 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -555,7 +555,7 @@ SPI_pfree(void *pointer)
*
*/
void
spi_printtup(HeapTuple tuple, TupleDesc tupdesc, DestReceiver * self)
spi_printtup(HeapTuple tuple, TupleDesc tupdesc, DestReceiver *self)
{
SPITupleTable *tuptable;
MemoryContext oldcxt;
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: be-dumpdata.c,v 1.24 1999/05/25 16:08:57 momjian Exp $
* $Id: be-dumpdata.c,v 1.25 1999/05/25 22:41:06 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -208,7 +208,7 @@ be_typeinit(PortalEntry *entry,
* ----------------
*/
void
be_printtup(HeapTuple tuple, TupleDesc typeinfo, DestReceiver * self)
be_printtup(HeapTuple tuple, TupleDesc typeinfo, DestReceiver *self)
{
int i;
Datum attr;
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.81 1999/05/25 16:09:04 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.82 1999/05/25 22:41:11 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -371,7 +371,7 @@ _copyHashJoin(HashJoin *from)
* ----------------
*/
static void
CopyNonameFields(Noname * from, Noname * newnode)
CopyNonameFields(Noname *from, Noname *newnode)
{
newnode->nonameid = from->nonameid;
newnode->keycount = from->keycount;
......@@ -384,7 +384,7 @@ CopyNonameFields(Noname * from, Noname * newnode)
* ----------------
*/
static Noname *
_copyNoname(Noname * from)
_copyNoname(Noname *from)
{
Noname *newnode = makeNode(Noname);
......@@ -862,7 +862,7 @@ _copyFunc(Func *from)
* ----------------
*/
static Aggref *
_copyAggref(Aggref * from)
_copyAggref(Aggref *from)
{
Aggref *newnode = makeNode(Aggref);
......@@ -907,7 +907,7 @@ _copySubLink(SubLink *from)
* ----------------
*/
static CaseExpr *
_copyCaseExpr(CaseExpr * from)
_copyCaseExpr(CaseExpr *from)
{
CaseExpr *newnode = makeNode(CaseExpr);
......@@ -929,7 +929,7 @@ _copyCaseExpr(CaseExpr * from)
* ----------------
*/
static CaseWhen *
_copyCaseWhen(CaseWhen * from)
_copyCaseWhen(CaseWhen *from)
{
CaseWhen *newnode = makeNode(CaseWhen);
......@@ -1000,7 +1000,7 @@ _copyArrayRef(ArrayRef *from)
* -- JMH, 8/2/93
*/
static RelOptInfo *
_copyRelOptInfo(RelOptInfo * from)
_copyRelOptInfo(RelOptInfo *from)
{
RelOptInfo *newnode = makeNode(RelOptInfo);
int i,
......@@ -1173,7 +1173,7 @@ _copyIndexPath(IndexPath *from)
* ----------------
*/
static void
CopyNestPathFields(NestPath * from, NestPath * newnode)
CopyNestPathFields(NestPath *from, NestPath *newnode)
{
Node_Copy(from, newnode, pathinfo);
Node_Copy(from, newnode, outerjoinpath);
......@@ -1185,7 +1185,7 @@ CopyNestPathFields(NestPath * from, NestPath * newnode)
* ----------------
*/
static NestPath *
_copyNestPath(NestPath * from)
_copyNestPath(NestPath *from)
{
NestPath *newnode = makeNode(NestPath);
......@@ -1319,7 +1319,7 @@ _copyMergeOrder(MergeOrder *from)
* ----------------
*/
static RestrictInfo *
_copyRestrictInfo(RestrictInfo * from)
_copyRestrictInfo(RestrictInfo *from)
{
RestrictInfo *newnode = makeNode(RestrictInfo);
......@@ -1374,7 +1374,7 @@ _copyJoinMethod(JoinMethod *from)
* ----------------
*/
static HashInfo *
_copyHashInfo(HashInfo * from)
_copyHashInfo(HashInfo *from)
{
HashInfo *newnode = makeNode(HashInfo);
......@@ -1393,7 +1393,7 @@ _copyHashInfo(HashInfo * from)
* ----------------
*/
static MergeInfo *
_copyMergeInfo(MergeInfo * from)
_copyMergeInfo(MergeInfo *from)
{
MergeInfo *newnode = makeNode(MergeInfo);
......@@ -1412,7 +1412,7 @@ _copyMergeInfo(MergeInfo * from)
* ----------------
*/
static JoinInfo *
_copyJoinInfo(JoinInfo * from)
_copyJoinInfo(JoinInfo *from)
{
JoinInfo *newnode = makeNode(JoinInfo);
......@@ -1496,7 +1496,7 @@ _copyRangeTblEntry(RangeTblEntry *from)
}
static RowMark *
_copyRowMark(RowMark * from)
_copyRowMark(RowMark *from)
{
RowMark *newnode = makeNode(RowMark);
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.37 1999/05/25 16:09:06 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.38 1999/05/25 22:41:13 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -283,7 +283,7 @@ _equalFunc(Func *a, Func *b)
* RestrictInfo is a subclass of Node.
*/
static bool
_equalRestrictInfo(RestrictInfo * a, RestrictInfo * b)
_equalRestrictInfo(RestrictInfo *a, RestrictInfo *b)
{
Assert(IsA(a, RestrictInfo));
Assert(IsA(b, RestrictInfo));
......@@ -307,7 +307,7 @@ _equalRestrictInfo(RestrictInfo * a, RestrictInfo * b)
* RelOptInfo is a subclass of Node.
*/
static bool
_equalRelOptInfo(RelOptInfo * a, RelOptInfo * b)
_equalRelOptInfo(RelOptInfo *a, RelOptInfo *b)
{
Assert(IsA(a, RelOptInfo));
Assert(IsA(b, RelOptInfo));
......@@ -392,7 +392,7 @@ _equalIndexPath(IndexPath *a, IndexPath *b)
}
static bool
_equalNestPath(NestPath * a, NestPath * b)
_equalNestPath(NestPath *a, NestPath *b)
{
Assert(IsA_JoinPath(a));
Assert(IsA_JoinPath(b));
......@@ -477,7 +477,7 @@ _equalMergeOrder(MergeOrder *a, MergeOrder *b)
}
static bool
_equalHashInfo(HashInfo * a, HashInfo * b)
_equalHashInfo(HashInfo *a, HashInfo *b)
{
Assert(IsA(a, HashInfo));
Assert(IsA(b, HashInfo));
......@@ -524,7 +524,7 @@ _equalSubPlan(SubPlan *a, SubPlan *b)
}
static bool
_equalJoinInfo(JoinInfo * a, JoinInfo * b)
_equalJoinInfo(JoinInfo *a, JoinInfo *b)
{
Assert(IsA(a, JoinInfo));
Assert(IsA(b, JoinInfo));
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/Attic/freefuncs.c,v 1.17 1999/05/25 16:09:06 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/Attic/freefuncs.c,v 1.18 1999/05/25 22:41:13 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -302,7 +302,7 @@ _freeHashJoin(HashJoin *node)
* ----------------
*/
static void
FreeNonameFields(Noname * node)
FreeNonameFields(Noname *node)
{
return;
}
......@@ -313,7 +313,7 @@ FreeNonameFields(Noname * node)
* ----------------
*/
static void
_freeNoname(Noname * node)
_freeNoname(Noname *node)
{
/* ----------------
* free node superclass fields
......@@ -609,7 +609,7 @@ _freeFunc(Func *node)
* ----------------
*/
static void
_freeAggref(Aggref * node)
_freeAggref(Aggref *node)
{
/* ----------------
* free remainder of node
......@@ -644,7 +644,7 @@ _freeSubLink(SubLink *node)
* ----------------
*/
static void
_freeCaseExpr(CaseExpr * node)
_freeCaseExpr(CaseExpr *node)
{
/* ----------------
* free remainder of node
......@@ -662,7 +662,7 @@ _freeCaseExpr(CaseExpr * node)
* ----------------
*/
static void
_freeCaseWhen(CaseWhen * node)
_freeCaseWhen(CaseWhen *node)
{
/* ----------------
* free remainder of node
......@@ -709,7 +709,7 @@ _freeArrayRef(ArrayRef *node)
* ----------------
*/
static void
_freeRelOptInfo(RelOptInfo * node)
_freeRelOptInfo(RelOptInfo *node)
{
/* ----------------
* free remainder of node
......@@ -812,7 +812,7 @@ _freeIndexPath(IndexPath *node)
* ----------------
*/
static void
FreeNestPathFields(NestPath * node)
FreeNestPathFields(NestPath *node)
{
freeObject(node->pathinfo);
freeObject(node->outerjoinpath);
......@@ -824,7 +824,7 @@ FreeNestPathFields(NestPath * node)
* ----------------
*/
static void
_freeNestPath(NestPath * node)
_freeNestPath(NestPath *node)
{
/* ----------------
* free the node superclass fields
......@@ -933,7 +933,7 @@ _freeMergeOrder(MergeOrder *node)
* ----------------
*/
static void
_freeRestrictInfo(RestrictInfo * node)
_freeRestrictInfo(RestrictInfo *node)
{
/* ----------------
* free remainder of node
......@@ -979,7 +979,7 @@ _freeJoinMethod(JoinMethod *node)
* ----------------
*/
static void
_freeHashInfo(HashInfo * node)
_freeHashInfo(HashInfo *node)
{
/* ----------------
* free remainder of node
......@@ -995,7 +995,7 @@ _freeHashInfo(HashInfo * node)
* ----------------
*/
static void
_freeMergeInfo(MergeInfo * node)
_freeMergeInfo(MergeInfo *node)
{
/* ----------------
* free remainder of node
......@@ -1012,7 +1012,7 @@ _freeMergeInfo(MergeInfo * node)
* ----------------
*/
static void
_freeJoinInfo(JoinInfo * node)
_freeJoinInfo(JoinInfo *node)
{
/* ----------------
* free remainder of node
......@@ -1066,7 +1066,7 @@ _freeRangeTblEntry(RangeTblEntry *node)
}
static void
_freeRowMark(RowMark * node)
_freeRowMark(RowMark *node)
{
pfree(node);
}
......
......@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: outfuncs.c,v 1.85 1999/05/25 16:09:09 momjian Exp $
* $Id: outfuncs.c,v 1.86 1999/05/25 22:41:14 momjian Exp $
*
* NOTES
* Every (plan) node in POSTGRES has an associated "out" routine which
......@@ -456,7 +456,7 @@ _outIndexScan(StringInfo str, IndexScan *node)
* Noname is a subclass of Plan
*/
static void
_outNoname(StringInfo str, Noname * node)
_outNoname(StringInfo str, Noname *node)
{
appendStringInfo(str, " NONAME ");
_outPlanInfo(str, (Plan *) node);
......@@ -660,7 +660,7 @@ _outConst(StringInfo str, Const *node)
* Aggref
*/
static void
_outAggref(StringInfo str, Aggref * node)
_outAggref(StringInfo str, Aggref *node)
{
appendStringInfo(str,
" AGGREG :aggname %s :basetype %u :aggtype %u :target ",
......@@ -816,7 +816,7 @@ _outEState(StringInfo str, EState *node)
* Stuff from relation.h
*/
static void
_outRelOptInfo(StringInfo str, RelOptInfo * node)
_outRelOptInfo(StringInfo str, RelOptInfo *node)
{
appendStringInfo(str, " RELOPTINFO :relids ");
_outIntList(str, node->relids);
......@@ -879,7 +879,7 @@ _outRangeTblEntry(StringInfo str, RangeTblEntry *node)
}
static void
_outRowMark(StringInfo str, RowMark * node)
_outRowMark(StringInfo str, RowMark *node)
{
appendStringInfo(str, " ROWMARK :rti %u :info %u", node->rti, node->info);
}
......@@ -954,7 +954,7 @@ _outIndexPath(StringInfo str, IndexPath *node)
* NestPath is a subclass of Path
*/
static void
_outNestPath(StringInfo str, NestPath * node)
_outNestPath(StringInfo str, NestPath *node)
{
appendStringInfo(str,
" NESTPATH :pathtype %d :cost %f :pathkeys ",
......@@ -1109,7 +1109,7 @@ _outMergeOrder(StringInfo str, MergeOrder *node)
* RestrictInfo is a subclass of Node.
*/
static void
_outRestrictInfo(StringInfo str, RestrictInfo * node)
_outRestrictInfo(StringInfo str, RestrictInfo *node)
{
appendStringInfo(str, " RESTRICTINFO :clause ");
_outNode(str, node->clause);
......@@ -1144,7 +1144,7 @@ _outJoinMethod(StringInfo str, JoinMethod *node)
* HashInfo is a subclass of JoinMethod.
*/
static void
_outHashInfo(StringInfo str, HashInfo * node)
_outHashInfo(StringInfo str, HashInfo *node)
{
appendStringInfo(str, " HASHINFO :hashop %u :jmkeys ", node->hashop);
_outNode(str, node->jmethod.jmkeys);
......@@ -1157,7 +1157,7 @@ _outHashInfo(StringInfo str, HashInfo * node)
* JoinInfo is a subclass of Node.
*/
static void
_outJoinInfo(StringInfo str, JoinInfo * node)
_outJoinInfo(StringInfo str, JoinInfo *node)
{
appendStringInfo(str, " JINFO :unjoined_relids ");
_outIntList(str, node->unjoined_relids);
......@@ -1365,7 +1365,7 @@ _outConstraint(StringInfo str, Constraint *node)
}
static void
_outCaseExpr(StringInfo str, CaseExpr * node)
_outCaseExpr(StringInfo str, CaseExpr *node)
{
appendStringInfo(str, "CASE ");
_outNode(str, node->args);
......@@ -1377,7 +1377,7 @@ _outCaseExpr(StringInfo str, CaseExpr * node)
}
static void
_outCaseWhen(StringInfo str, CaseWhen * node)
_outCaseWhen(StringInfo str, CaseWhen *node)
{
appendStringInfo(str, " WHEN ");
_outNode(str, node->expr);
......
......@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo_eval.c,v 1.38 1999/05/25 16:09:15 momjian Exp $
* $Id: geqo_eval.c,v 1.39 1999/05/25 22:41:19 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -130,7 +130,7 @@ geqo_eval(Query *root, Gene *tour, int num_gene)
* Returns a new join relation incorporating all joins in a left-sided tree.
*/
RelOptInfo *
gimme_tree(Query *root, Gene *tour, int rel_count, int num_gene, RelOptInfo * old_rel)
gimme_tree(Query *root, Gene *tour, int rel_count, int num_gene, RelOptInfo *old_rel)
{
RelOptInfo *inner_rel; /* current relation */
int base_rel_index;
......
......@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo_misc.c,v 1.18 1999/05/25 16:09:17 momjian Exp $
* $Id: geqo_misc.c,v 1.19 1999/05/25 22:41:20 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -261,7 +261,7 @@ geqo_print_path(Query *root, Path *path, int indent)
}
void
geqo_print_rel(Query *root, RelOptInfo * rel)
geqo_print_rel(Query *root, RelOptInfo *rel)
{
List *l;
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/geqo/Attic/minspantree.c,v 1.11 1999/05/25 16:09:19 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/geqo/Attic/minspantree.c,v 1.12 1999/05/25 22:41:22 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -41,7 +41,7 @@
*/
void
minspantree(Query *root, List *join_rels, RelOptInfo * garel)
minspantree(Query *root, List *join_rels, RelOptInfo *garel)
{
int number_of_rels = length(root->base_rel_list);
int number_of_joins = length(join_rels);
......@@ -111,9 +111,9 @@ minspantree(Query *root, List *join_rels, RelOptInfo * garel)
else if (number_of_joins == 3)
{
RelOptInfo *rel12 = (RelOptInfo *) & tmprel_array[1][2];
RelOptInfo *rel13 = (RelOptInfo *) & tmprel_array[1][3];
RelOptInfo *rel23 = (RelOptInfo *) & tmprel_array[2][3];
RelOptInfo *rel12 = (RelOptInfo *) &tmprel_array[1][2];
RelOptInfo *rel13 = (RelOptInfo *) &tmprel_array[1][3];
RelOptInfo *rel23 = (RelOptInfo *) &tmprel_array[2][3];
if (rel12->cheapestpath->path_cost > rel13->cheapestpath->path_cost)
{
......@@ -159,9 +159,9 @@ minspantree(Query *root, List *join_rels, RelOptInfo * garel)
if (connectto[tempn] != 0)
{
if (n > tempn)
joinrel = (RelOptInfo *) & tmprel_array[tempn][n];
joinrel = (RelOptInfo *) &tmprel_array[tempn][n];
else
joinrel = (RelOptInfo *) & tmprel_array[n][tempn];
joinrel = (RelOptInfo *) &tmprel_array[n][tempn];
dist = joinrel->cheapestpath->path_cost;
if (dist < disttoconnect[tempn])
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/_deadcode/Attic/predmig.c,v 1.3 1999/05/25 22:04:22 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/_deadcode/Attic/predmig.c,v 1.4 1999/05/25 22:41:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
......@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/_deadcode/Attic/xfunc.c,v 1.3 1999/05/25 16:09:31 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/_deadcode/Attic/xfunc.c,v 1.4 1999/05/25 22:41:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -144,7 +144,7 @@ xfunc_shouldpull(Query *queryInfo,
Path childpath,
JoinPath parentpath,
int whichchild,
RestrictInfo * maxcinfopt) /* Out: pointer to clause
RestrictInfo *maxcinfopt) /* Out: pointer to clause
* to pullup */
{
LispValue clauselist,
......@@ -225,7 +225,7 @@ xfunc_shouldpull(Query *queryInfo,
|| (!is_join(childpath)
&& (whichchild == INNER)
&& IsA(parentpath, NestPath)
&& !IsA(parentpath, HashPath)
&&!IsA(parentpath, HashPath)
&&!IsA(parentpath, MergePath)))))
{
......@@ -1423,7 +1423,7 @@ do { \
** Just like _copyRel, but doesn't copy the paths
*/
bool
xfunc_copyrel(RelOptInfo from, RelOptInfo * to)
xfunc_copyrel(RelOptInfo from, RelOptInfo *to)
{
RelOptInfo newnode;
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.45 1999/05/25 16:09:22 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.46 1999/05/25 22:41:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -48,7 +48,7 @@ static RelOptInfo *make_one_rel_by_joins(Query *root, List *rels,
int levels_needed);
#ifdef OPTIMIZER_DEBUG
static void debug_print_rel(Query *root, RelOptInfo * rel);
static void debug_print_rel(Query *root, RelOptInfo *rel);
#endif
......@@ -355,7 +355,7 @@ print_path(Query *root, Path *path, int indent)
}
static void
debug_print_rel(Query *root, RelOptInfo * rel)
debug_print_rel(Query *root, RelOptInfo *rel)
{
List *l;
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.37 1999/05/25 16:09:23 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.38 1999/05/25 22:41:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -390,7 +390,7 @@ cost_hashjoin(Cost outercost,
* Returns the size.
*/
int
compute_rel_size(RelOptInfo * rel)
compute_rel_size(RelOptInfo *rel)
{
Cost temp;
int temp1;
......@@ -413,7 +413,7 @@ compute_rel_size(RelOptInfo * rel)
* Returns the width of the tuple as a fixnum.
*/
int
compute_rel_width(RelOptInfo * rel)
compute_rel_width(RelOptInfo *rel)
{
return compute_targetlist_width(get_actual_tlist(rel->targetlist));
}
......
......@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.55 1999/05/25 16:09:24 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.56 1999/05/25 22:41:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -45,32 +45,32 @@
#include "utils/lsyscache.h"
static void match_index_orclauses(RelOptInfo * rel, RelOptInfo * index, int indexkey,
static void match_index_orclauses(RelOptInfo *rel, RelOptInfo *index, int indexkey,
int xclass, List *restrictinfo_list);
static bool match_index_to_operand(int indexkey, Expr *operand,
RelOptInfo * rel, RelOptInfo * index);
static List *match_index_orclause(RelOptInfo * rel, RelOptInfo * index, int indexkey,
RelOptInfo *rel, RelOptInfo *index);
static List *match_index_orclause(RelOptInfo *rel, RelOptInfo *index, int indexkey,
int xclass, List *or_clauses, List *other_matching_indices);
static List *group_clauses_by_indexkey(RelOptInfo * rel, RelOptInfo * index,
static List *group_clauses_by_indexkey(RelOptInfo *rel, RelOptInfo *index,
int *indexkeys, Oid *classes, List *restrictinfo_list);
static List *group_clauses_by_ikey_for_joins(RelOptInfo * rel, RelOptInfo * index,
static List *group_clauses_by_ikey_for_joins(RelOptInfo *rel, RelOptInfo *index,
int *indexkeys, Oid *classes, List *join_cinfo_list, List *restr_cinfo_list);
static RestrictInfo *match_clause_to_indexkey(RelOptInfo * rel, RelOptInfo * index, int indexkey,
int xclass, RestrictInfo * restrictInfo, bool join);
static RestrictInfo *match_clause_to_indexkey(RelOptInfo *rel, RelOptInfo *index, int indexkey,
int xclass, RestrictInfo *restrictInfo, bool join);
static bool pred_test(List *predicate_list, List *restrictinfo_list,
List *joininfo_list);
static bool one_pred_test(Expr *predicate, List *restrictinfo_list);
static bool one_pred_clause_expr_test(Expr *predicate, Node *clause);
static bool one_pred_clause_test(Expr *predicate, Node *clause);
static bool clause_pred_clause_test(Expr *predicate, Node *clause);
static List *indexable_joinclauses(RelOptInfo * rel, RelOptInfo * index,
static List *indexable_joinclauses(RelOptInfo *rel, RelOptInfo *index,
List *joininfo_list, List *restrictinfo_list);
static List *index_innerjoin(Query *root, RelOptInfo * rel,
List *clausegroup_list, RelOptInfo * index);
static List *create_index_path_group(Query *root, RelOptInfo * rel, RelOptInfo * index,
static List *index_innerjoin(Query *root, RelOptInfo *rel,
List *clausegroup_list, RelOptInfo *index);
static List *create_index_path_group(Query *root, RelOptInfo *rel, RelOptInfo *index,
List *clausegroup_list, bool join);
static List *add_index_paths(List *indexpaths, List *new_indexpaths);
static bool function_index_operand(Expr *funcOpnd, RelOptInfo * rel, RelOptInfo * index);
static bool function_index_operand(Expr *funcOpnd, RelOptInfo *rel, RelOptInfo *index);
/* find_index_paths()
......@@ -100,7 +100,7 @@ static bool function_index_operand(Expr *funcOpnd, RelOptInfo * rel, RelOptInfo
*/
List *
create_index_paths(Query *root,
RelOptInfo * rel,
RelOptInfo *rel,
List *indices,
List *restrictinfo_list,
List *joininfo_list)
......@@ -217,8 +217,8 @@ create_index_paths(Query *root,
*
*/
static void
match_index_orclauses(RelOptInfo * rel,
RelOptInfo * index,
match_index_orclauses(RelOptInfo *rel,
RelOptInfo *index,
int indexkey,
int xclass,
List *restrictinfo_list)
......@@ -253,8 +253,8 @@ match_index_orclauses(RelOptInfo * rel,
static bool
match_index_to_operand(int indexkey,
Expr *operand,
RelOptInfo * rel,
RelOptInfo * index)
RelOptInfo *rel,
RelOptInfo *index)
{
bool result;
......@@ -296,8 +296,8 @@ match_index_to_operand(int indexkey,
* match the third, g,h match the fourth, etc.
*/
static List *
match_index_orclause(RelOptInfo * rel,
RelOptInfo * index,
match_index_orclause(RelOptInfo *rel,
RelOptInfo *index,
int indexkey,
int xclass,
List *or_clauses,
......@@ -387,8 +387,8 @@ match_index_orclause(RelOptInfo * rel,
*
*/
static List *
group_clauses_by_indexkey(RelOptInfo * rel,
RelOptInfo * index,
group_clauses_by_indexkey(RelOptInfo *rel,
RelOptInfo *index,
int *indexkeys,
Oid *classes,
List *restrictinfo_list)
......@@ -449,8 +449,8 @@ group_clauses_by_indexkey(RelOptInfo * rel,
*
*/
static List *
group_clauses_by_ikey_for_joins(RelOptInfo * rel,
RelOptInfo * index,
group_clauses_by_ikey_for_joins(RelOptInfo *rel,
RelOptInfo *index,
int *indexkeys,
Oid *classes,
List *join_cinfo_list,
......@@ -571,11 +571,11 @@ group_clauses_by_ikey_for_joins(RelOptInfo * rel,
*
*/
static RestrictInfo *
match_clause_to_indexkey(RelOptInfo * rel,
RelOptInfo * index,
match_clause_to_indexkey(RelOptInfo *rel,
RelOptInfo *index,
int indexkey,
int xclass,
RestrictInfo * restrictInfo,
RestrictInfo *restrictInfo,
bool join)
{
Expr *clause = restrictInfo->clause;
......@@ -1183,7 +1183,7 @@ clause_pred_clause_test(Expr *predicate, Node *clause)
*
*/
static List *
indexable_joinclauses(RelOptInfo * rel, RelOptInfo * index,
indexable_joinclauses(RelOptInfo *rel, RelOptInfo *index,
List *joininfo_list, List *restrictinfo_list)
{
JoinInfo *joininfo = (JoinInfo *) NULL;
......@@ -1255,8 +1255,8 @@ extract_restrict_clauses(List *clausegroup)
*
*/
static List *
index_innerjoin(Query *root, RelOptInfo * rel, List *clausegroup_list,
RelOptInfo * index)
index_innerjoin(Query *root, RelOptInfo *rel, List *clausegroup_list,
RelOptInfo *index)
{
List *clausegroup = NIL;
List *cg_list = NIL;
......@@ -1343,8 +1343,8 @@ index_innerjoin(Query *root, RelOptInfo * rel, List *clausegroup_list,
*/
static List *
create_index_path_group(Query *root,
RelOptInfo * rel,
RelOptInfo * index,
RelOptInfo *rel,
RelOptInfo *index,
List *clausegroup_list,
bool join)
{
......@@ -1386,7 +1386,7 @@ add_index_paths(List *indexpaths, List *new_indexpaths)
}
static bool
function_index_operand(Expr *funcOpnd, RelOptInfo * rel, RelOptInfo * index)
function_index_operand(Expr *funcOpnd, RelOptInfo *rel, RelOptInfo *index)
{
Oid heapRelid = (Oid) lfirsti(rel->relids);
Func *function;
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/joinpath.c,v 1.37 1999/05/25 16:09:25 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/joinpath.c,v 1.38 1999/05/25 22:41:30 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -30,14 +30,14 @@
* _enable_mergejoin} */
static Path *best_innerjoin(List *join_paths, List *outer_relid);
static List *sort_inner_and_outer(RelOptInfo * joinrel, RelOptInfo * outerrel, RelOptInfo * innerrel,
static List *sort_inner_and_outer(RelOptInfo *joinrel, RelOptInfo *outerrel, RelOptInfo *innerrel,
List *mergeinfo_list);
static List *match_unsorted_outer(RelOptInfo * joinrel, RelOptInfo * outerrel, RelOptInfo * innerrel,
static List *match_unsorted_outer(RelOptInfo *joinrel, RelOptInfo *outerrel, RelOptInfo *innerrel,
List *outerpath_list, Path *cheapest_inner, Path *best_innerjoin,
List *mergeinfo_list);
static List *match_unsorted_inner(RelOptInfo * joinrel, RelOptInfo * outerrel, RelOptInfo * innerrel,
static List *match_unsorted_inner(RelOptInfo *joinrel, RelOptInfo *outerrel, RelOptInfo *innerrel,
List *innerpath_list, List *mergeinfo_list);
static List *hash_inner_and_outer(RelOptInfo * joinrel, RelOptInfo * outerrel, RelOptInfo * innerrel,
static List *hash_inner_and_outer(RelOptInfo *joinrel, RelOptInfo *outerrel, RelOptInfo *innerrel,
List *hashinfo_list);
/*
......@@ -194,9 +194,9 @@ best_innerjoin(List *join_paths, Relids outer_relids)
* Returns a list of mergejoin paths.
*/
static List *
sort_inner_and_outer(RelOptInfo * joinrel,
RelOptInfo * outerrel,
RelOptInfo * innerrel,
sort_inner_and_outer(RelOptInfo *joinrel,
RelOptInfo *outerrel,
RelOptInfo *innerrel,
List *mergeinfo_list)
{
List *ms_list = NIL;
......@@ -268,9 +268,9 @@ sort_inner_and_outer(RelOptInfo * joinrel,
* Returns a list of possible join path nodes.
*/
static List *
match_unsorted_outer(RelOptInfo * joinrel,
RelOptInfo * outerrel,
RelOptInfo * innerrel,
match_unsorted_outer(RelOptInfo *joinrel,
RelOptInfo *outerrel,
RelOptInfo *innerrel,
List *outerpath_list,
Path *cheapest_inner,
Path *best_innerjoin,
......@@ -411,9 +411,9 @@ match_unsorted_outer(RelOptInfo * joinrel,
* Returns a list of possible merge paths.
*/
static List *
match_unsorted_inner(RelOptInfo * joinrel,
RelOptInfo * outerrel,
RelOptInfo * innerrel,
match_unsorted_inner(RelOptInfo *joinrel,
RelOptInfo *outerrel,
RelOptInfo *innerrel,
List *innerpath_list,
List *mergeinfo_list)
{
......@@ -503,9 +503,9 @@ match_unsorted_inner(RelOptInfo * joinrel,
* Returns a list of hashjoin paths.
*/
static List *
hash_inner_and_outer(RelOptInfo * joinrel,
RelOptInfo * outerrel,
RelOptInfo * innerrel,
hash_inner_and_outer(RelOptInfo *joinrel,
RelOptInfo *outerrel,
RelOptInfo *innerrel,
List *hashinfo_list)
{
List *hjoin_list = NIL;
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/joinrels.c,v 1.33 1999/05/25 16:09:26 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/joinrels.c,v 1.34 1999/05/25 22:41:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -26,8 +26,8 @@
static List *new_joininfo_list(List *joininfo_list, Relids join_relids);
static bool nonoverlap_sets(List *s1, List *s2);
static bool is_subset(List *s1, List *s2);
static void set_joinrel_size(RelOptInfo * joinrel, RelOptInfo * outer_rel,
RelOptInfo * inner_rel, JoinInfo * jinfo);
static void set_joinrel_size(RelOptInfo *joinrel, RelOptInfo *outer_rel,
RelOptInfo *inner_rel, JoinInfo *jinfo);
/*
* make_rels_by_joins
......@@ -89,7 +89,7 @@ make_rels_by_joins(Query *root, List *old_rels)
* Returns a list of new join relations.
*/
List *
make_rels_by_clause_joins(Query *root, RelOptInfo * old_rel,
make_rels_by_clause_joins(Query *root, RelOptInfo *old_rel,
List *joininfo_list, Relids only_relids)
{
List *join_list = NIL;
......@@ -159,7 +159,7 @@ make_rels_by_clause_joins(Query *root, RelOptInfo * old_rel,
* Returns a list of new join relations.
*/
List *
make_rels_by_clauseless_joins(RelOptInfo * old_rel, List *inner_rels)
make_rels_by_clauseless_joins(RelOptInfo *old_rel, List *inner_rels)
{
RelOptInfo *inner_rel;
List *t_list = NIL;
......@@ -192,7 +192,7 @@ make_rels_by_clauseless_joins(RelOptInfo * old_rel, List *inner_rels)
* Returns the new join relation node.
*/
RelOptInfo *
make_join_rel(RelOptInfo * outer_rel, RelOptInfo * inner_rel, JoinInfo * joininfo)
make_join_rel(RelOptInfo *outer_rel, RelOptInfo *inner_rel, JoinInfo *joininfo)
{
RelOptInfo *joinrel = makeNode(RelOptInfo);
List *joinrel_joininfo_list = NIL;
......@@ -436,7 +436,7 @@ is_subset(List *s1, List *s2)
}
static void
set_joinrel_size(RelOptInfo * joinrel, RelOptInfo * outer_rel, RelOptInfo * inner_rel, JoinInfo * jinfo)
set_joinrel_size(RelOptInfo *joinrel, RelOptInfo *outer_rel, RelOptInfo *inner_rel, JoinInfo *jinfo)
{
int ntuples;
float selec;
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/orindxpath.c,v 1.24 1999/05/25 16:09:27 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/orindxpath.c,v 1.25 1999/05/25 22:41:32 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -31,9 +31,9 @@
#include "parser/parsetree.h"
static void best_or_subclause_indices(Query *root, RelOptInfo * rel, List *subclauses,
static void best_or_subclause_indices(Query *root, RelOptInfo *rel, List *subclauses,
List *indices, List **indexids, Cost *cost, Cost *selec);
static void best_or_subclause_index(Query *root, RelOptInfo * rel, Expr *subclause,
static void best_or_subclause_index(Query *root, RelOptInfo *rel, Expr *subclause,
List *indices, int *indexid, Cost *cost, Cost *selec);
......@@ -49,7 +49,7 @@ static void best_or_subclause_index(Query *root, RelOptInfo * rel, Expr *subclau
*/
List *
create_or_index_paths(Query *root,
RelOptInfo * rel, List *clauses)
RelOptInfo *rel, List *clauses)
{
List *t_list = NIL;
List *clist;
......@@ -156,7 +156,7 @@ create_or_index_paths(Query *root,
*/
static void
best_or_subclause_indices(Query *root,
RelOptInfo * rel,
RelOptInfo *rel,
List *subclauses,
List *indices,
List **indexids, /* return value */
......@@ -205,7 +205,7 @@ best_or_subclause_indices(Query *root,
*/
static void
best_or_subclause_index(Query *root,
RelOptInfo * rel,
RelOptInfo *rel,
Expr *subclause,
List *indices,
int *retIndexid, /* return value */
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/prune.c,v 1.38 1999/05/25 16:09:28 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/prune.c,v 1.39 1999/05/25 22:41:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -24,7 +24,7 @@
#include "utils/elog.h"
static List *merge_rel_with_same_relids(RelOptInfo * rel, Relids unjoined_relids);
static List *merge_rel_with_same_relids(RelOptInfo *rel, Relids unjoined_relids);
/*
* merge_rels_with_same_relids
......@@ -59,7 +59,7 @@ merge_rels_with_same_relids(List *rel_list)
*
*/
static List *
merge_rel_with_same_relids(RelOptInfo * rel, Relids unjoined_relids)
merge_rel_with_same_relids(RelOptInfo *rel, Relids unjoined_relids)
{
List *i = NIL;
List *result = NIL;
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.56 1999/05/25 16:09:34 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.57 1999/05/25 22:41:38 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -53,7 +53,7 @@ static SeqScan *create_seqscan_node(Path *best_path, List *tlist,
List *scan_clauses);
static IndexScan *create_indexscan_node(IndexPath *best_path, List *tlist,
List *scan_clauses);
static NestLoop *create_nestloop_node(NestPath * best_path, List *tlist,
static NestLoop *create_nestloop_node(NestPath *best_path, List *tlist,
List *clauses, Plan *outer_node, List *outer_tlist,
Plan *inner_node, List *inner_tlist);
static MergeJoin *create_mergejoin_node(MergePath *best_path, List *tlist,
......@@ -418,7 +418,7 @@ create_indexscan_node(IndexPath *best_path,
*****************************************************************************/
static NestLoop *
create_nestloop_node(NestPath * best_path,
create_nestloop_node(NestPath *best_path,
List *tlist,
List *clauses,
Plan *outer_node,
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/initsplan.c,v 1.30 1999/05/25 16:09:36 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/initsplan.c,v 1.31 1999/05/25 22:41:39 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -40,7 +40,7 @@
extern int Quiet;
static void add_restrict_and_join_to_rel(Query *root, List *clause);
static void add_join_info_to_rels(Query *root, RestrictInfo * restrictinfo,
static void add_join_info_to_rels(Query *root, RestrictInfo *restrictinfo,
Relids join_relids);
static void add_vars_to_targetlist(Query *root, List *vars, Relids join_relids);
......@@ -240,7 +240,7 @@ add_restrict_and_join_to_rel(Query *root, List *clause)
*
*/
static void
add_join_info_to_rels(Query *root, RestrictInfo * restrictinfo,
add_join_info_to_rels(Query *root, RestrictInfo *restrictinfo,
Relids join_relids)
{
List *join_relid;
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/setrefs.c,v 1.47 1999/05/25 16:09:39 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/setrefs.c,v 1.48 1999/05/25 22:41:41 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -35,7 +35,7 @@
static void set_join_tlist_references(Join *join);
static void set_nonamescan_tlist_references(SeqScan *nonamescan);
static void set_noname_tlist_references(Noname * noname);
static void set_noname_tlist_references(Noname *noname);
static Node *replace_clause_joinvar_refs(Node *clause,
List *outer_tlist,
List *inner_tlist);
......@@ -161,7 +161,7 @@ set_nonamescan_tlist_references(SeqScan *nonamescan)
*
*/
static void
set_noname_tlist_references(Noname * noname)
set_noname_tlist_references(Noname *noname)
{
Plan *source = ((Plan *) noname)->lefttree;
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.34 1999/05/25 16:09:50 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.35 1999/05/25 22:41:46 momjian Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
......@@ -369,7 +369,7 @@ pull_constant_clauses(List *quals, List **constantQual)
*
*/
void
clause_get_relids_vars(Node *clause, Relids * relids, List **vars)
clause_get_relids_vars(Node *clause, Relids *relids, List **vars)
{
List *clvars = pull_var_clause(clause);
List *var_list = NIL;
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/Attic/indexnode.c,v 1.15 1999/05/25 16:09:53 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/Attic/indexnode.c,v 1.16 1999/05/25 22:41:47 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -33,7 +33,7 @@ static List *find_secondary_index(Query *root, Oid relid);
*
*/
List *
find_relation_indices(Query *root, RelOptInfo * rel)
find_relation_indices(Query *root, RelOptInfo *rel)
{
if (rel->indexed)
return find_secondary_index(root, lfirsti(rel->relids));
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/joininfo.c,v 1.20 1999/05/25 16:09:54 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/joininfo.c,v 1.21 1999/05/25 22:41:47 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -62,7 +62,7 @@ joininfo_member(List *join_relids, List *joininfo_list)
*
*/
JoinInfo *
find_joininfo_node(RelOptInfo * this_rel, Relids join_relids)
find_joininfo_node(RelOptInfo *this_rel, Relids join_relids)
{
JoinInfo *joininfo = joininfo_member(join_relids,
this_rel->joininfo);
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/Attic/keys.c,v 1.20 1999/05/25 16:09:56 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/Attic/keys.c,v 1.21 1999/05/25 22:41:48 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -54,7 +54,7 @@ static bool equal_indexkey_var(int index_key, Var *var);
*
*/
bool
match_indexkey_operand(int indexkey, Var *operand, RelOptInfo * rel)
match_indexkey_operand(int indexkey, Var *operand, RelOptInfo *rel)
{
if (IsA(operand, Var) &&
(lfirsti(rel->relids) == operand->varno) &&
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.41 1999/05/25 16:09:58 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.42 1999/05/25 22:41:49 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -62,7 +62,7 @@ path_is_cheaper(Path *path1, Path *path2)
*
*/
Path *
set_cheapest(RelOptInfo * parent_rel, List *pathlist)
set_cheapest(RelOptInfo *parent_rel, List *pathlist)
{
List *p;
Path *cheapest_so_far;
......@@ -99,7 +99,7 @@ set_cheapest(RelOptInfo * parent_rel, List *pathlist)
*
*/
List *
add_pathlist(RelOptInfo * parent_rel, List *unique_paths, List *new_paths)
add_pathlist(RelOptInfo *parent_rel, List *unique_paths, List *new_paths)
{
List *p1;
......@@ -278,7 +278,7 @@ better_path(Path *new_path, List *unique_paths, bool *is_new)
*
*/
Path *
create_seqscan_path(RelOptInfo * rel)
create_seqscan_path(RelOptInfo *rel)
{
int relid = 0;
......@@ -326,8 +326,8 @@ create_seqscan_path(RelOptInfo * rel)
*/
IndexPath *
create_index_path(Query *root,
RelOptInfo * rel,
RelOptInfo * index,
RelOptInfo *rel,
RelOptInfo *index,
List *restriction_clauses,
bool is_join_scan)
{
......@@ -473,8 +473,8 @@ create_index_path(Query *root,
*
*/
NestPath *
create_nestloop_path(RelOptInfo * joinrel,
RelOptInfo * outer_rel,
create_nestloop_path(RelOptInfo *joinrel,
RelOptInfo *outer_rel,
Path *outer_path,
Path *inner_path,
List *pathkeys)
......@@ -541,7 +541,7 @@ create_nestloop_path(RelOptInfo * joinrel,
*
*/
MergePath *
create_mergejoin_path(RelOptInfo * joinrel,
create_mergejoin_path(RelOptInfo *joinrel,
int outersize,
int innersize,
int outerwidth,
......@@ -604,7 +604,7 @@ create_mergejoin_path(RelOptInfo * joinrel,
*
*/
HashPath *
create_hashjoin_path(RelOptInfo * joinrel,
create_hashjoin_path(RelOptInfo *joinrel,
int outersize,
int innersize,
int outerwidth,
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/restrictinfo.c,v 1.3 1999/05/25 16:10:02 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/restrictinfo.c,v 1.4 1999/05/25 22:41:50 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -27,7 +27,7 @@
*
*/
bool
valid_or_clause(RestrictInfo * restrictinfo)
valid_or_clause(RestrictInfo *restrictinfo)
{
if (restrictinfo != NULL &&
!single_node((Node *) restrictinfo->clause) &&
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/tlist.c,v 1.32 1999/05/25 16:10:03 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/tlist.c,v 1.33 1999/05/25 22:41:51 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -93,7 +93,7 @@ matching_tlist_var(Var *var, List *targetlist)
* CREATES: new var_node iff no matching var_node exists in targetlist
*/
void
add_var_to_tlist(RelOptInfo * rel, Var *var)
add_var_to_tlist(RelOptInfo *rel, Var *var)
{
Expr *oldvar;
......
......@@ -6,7 +6,7 @@
* Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Id: fd.c,v 1.40 1999/05/25 16:11:03 momjian Exp $
* $Id: fd.c,v 1.41 1999/05/25 22:41:57 momjian Exp $
*
* NOTES:
*
......@@ -1064,7 +1064,7 @@ BufFileCreate(File file)
* Like fclose(), this also implicitly FileCloses the underlying File.
*/
void
BufFileClose(BufFile * file)
BufFileClose(BufFile *file)
{
/* flush any unwritten data */
BufFileFlush(file);
......@@ -1079,7 +1079,7 @@ BufFileClose(BufFile * file)
* Like fread() except we assume 1-byte element size.
*/
size_t
BufFileRead(BufFile * file, void *ptr, size_t size)
BufFileRead(BufFile *file, void *ptr, size_t size)
{
size_t nread = 0;
size_t nthistime;
......@@ -1125,7 +1125,7 @@ BufFileRead(BufFile * file, void *ptr, size_t size)
* Like fwrite() except we assume 1-byte element size.
*/
size_t
BufFileWrite(BufFile * file, void *ptr, size_t size)
BufFileWrite(BufFile *file, void *ptr, size_t size)
{
size_t nwritten = 0;
size_t nthistime;
......@@ -1169,7 +1169,7 @@ BufFileWrite(BufFile * file, void *ptr, size_t size)
* Like fflush()
*/
int
BufFileFlush(BufFile * file)
BufFileFlush(BufFile *file)
{
if (file->dirty)
{
......@@ -1187,7 +1187,7 @@ BufFileFlush(BufFile * file)
* the new file offset (or -1 in case of error).
*/
long
BufFileSeek(BufFile * file, long offset, int whence)
BufFileSeek(BufFile *file, long offset, int whence)
{
if (BufFileFlush(file) < 0)
return -1L;
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lmgr.c,v 1.24 1999/05/25 16:11:20 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lmgr.c,v 1.25 1999/05/25 22:42:01 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.53 1999/05/25 16:11:21 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.54 1999/05/25 22:42:03 momjian Exp $
*
* NOTES
* Outside modules can create a lock table and acquire/release
......@@ -231,7 +231,7 @@ LockDisable(int status)
* Notes: just copying. Should only be called once.
*/
static void
LockMethodInit(LOCKMETHODTABLE * lockMethodTable,
LockMethodInit(LOCKMETHODTABLE *lockMethodTable,
MASK *conflictsP,
int *prioP,
int numModes)
......@@ -1843,7 +1843,7 @@ LockOwners(LOCKMETHOD lockmethod, LOCKTAG *locktag)
if (is_user_lock)
{
TPRINTF(TRACE_USERLOCKS, "LockOwners: user lock tag [%u]",
locktag->objId.blkno;
locktag->objId.blkno);
}
#endif
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.56 1999/05/25 16:11:23 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.57 1999/05/25 22:42:03 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -46,7 +46,7 @@
* This is so that we can support more backends. (system-wide semaphore
* sets run out pretty fast.) -ay 4/95
*
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.56 1999/05/25 16:11:23 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.57 1999/05/25 22:42:03 momjian Exp $
*/
#include <sys/time.h>
#include <unistd.h>
......@@ -492,7 +492,7 @@ ProcQueueInit(PROC_QUEUE *queue)
*/
int
ProcSleep(PROC_QUEUE *waitQueue,/* lock->waitProcs */
LOCKMETHODCTL * lockctl,
LOCKMETHODCTL *lockctl,
int token, /* lockmode */
LOCK *lock)
{
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/dest.c,v 1.30 1999/05/25 16:11:37 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/dest.c,v 1.31 1999/05/25 22:42:06 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -60,17 +60,17 @@ static char CommandInfo[32] = {0};
* ----------------
*/
static void
donothingReceive(HeapTuple tuple, TupleDesc typeinfo, DestReceiver * self)
donothingReceive(HeapTuple tuple, TupleDesc typeinfo, DestReceiver *self)
{
}
static void
donothingSetup(DestReceiver * self, TupleDesc typeinfo)
donothingSetup(DestReceiver *self, TupleDesc typeinfo)
{
}
static void
donothingCleanup(DestReceiver * self)
donothingCleanup(DestReceiver *self)
{
}
......
......@@ -11,7 +11,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: tgRecipe.h,v 1.10 1999/05/25 22:04:36 momjian Exp $
* $Id: tgRecipe.h,v 1.11 1999/05/25 22:42:09 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -37,6 +37,7 @@ typedef struct
*
*
*
*
* geo-decls.h */
#endif /* TIOGA_FRONTEND */
......
......@@ -71,7 +71,7 @@ int8in(char *str)
/* int8out()
*/
char *
int8out(int64 * val)
int8out(int64 *val)
{
char *result;
......@@ -100,37 +100,37 @@ int8out(int64 * val)
* Is val1 relop val2?
*/
bool
int8eq(int64 * val1, int64 * val2)
int8eq(int64 *val1, int64 *val2)
{
return *val1 == *val2;
} /* int8eq() */
bool
int8ne(int64 * val1, int64 * val2)
int8ne(int64 *val1, int64 *val2)
{
return *val1 != *val2;
} /* int8ne() */
bool
int8lt(int64 * val1, int64 * val2)
int8lt(int64 *val1, int64 *val2)
{
return *val1 < *val2;
} /* int8lt() */
bool
int8gt(int64 * val1, int64 * val2)
int8gt(int64 *val1, int64 *val2)
{
return *val1 > *val2;
} /* int8gt() */
bool
int8le(int64 * val1, int64 * val2)
int8le(int64 *val1, int64 *val2)
{
return *val1 <= *val2;
} /* int8le() */
bool
int8ge(int64 * val1, int64 * val2)
int8ge(int64 *val1, int64 *val2)
{
return *val1 >= *val2;
} /* int8ge() */
......@@ -140,37 +140,37 @@ int8ge(int64 * val1, int64 * val2)
* Is 64-bit val1 relop 32-bit val2?
*/
bool
int84eq(int64 * val1, int32 val2)
int84eq(int64 *val1, int32 val2)
{
return *val1 == val2;
} /* int84eq() */
bool
int84ne(int64 * val1, int32 val2)
int84ne(int64 *val1, int32 val2)
{
return *val1 != val2;
} /* int84ne() */
bool
int84lt(int64 * val1, int32 val2)
int84lt(int64 *val1, int32 val2)
{
return *val1 < val2;
} /* int84lt() */
bool
int84gt(int64 * val1, int32 val2)
int84gt(int64 *val1, int32 val2)
{
return *val1 > val2;
} /* int84gt() */
bool
int84le(int64 * val1, int32 val2)
int84le(int64 *val1, int32 val2)
{
return *val1 <= val2;
} /* int84le() */
bool
int84ge(int64 * val1, int32 val2)
int84ge(int64 *val1, int32 val2)
{
return *val1 >= val2;
} /* int84ge() */
......@@ -180,37 +180,37 @@ int84ge(int64 * val1, int32 val2)
* Is 32-bit val1 relop 64-bit val2?
*/
bool
int48eq(int32 val1, int64 * val2)
int48eq(int32 val1, int64 *val2)
{
return val1 == *val2;
} /* int48eq() */
bool
int48ne(int32 val1, int64 * val2)
int48ne(int32 val1, int64 *val2)
{
return val1 != *val2;
} /* int48ne() */
bool
int48lt(int32 val1, int64 * val2)
int48lt(int32 val1, int64 *val2)
{
return val1 < *val2;
} /* int48lt() */
bool
int48gt(int32 val1, int64 * val2)
int48gt(int32 val1, int64 *val2)
{
return val1 > *val2;
} /* int48gt() */
bool
int48le(int32 val1, int64 * val2)
int48le(int32 val1, int64 *val2)
{
return val1 <= *val2;
} /* int48le() */
bool
int48ge(int32 val1, int64 * val2)
int48ge(int32 val1, int64 *val2)
{
return val1 >= *val2;
} /* int48ge() */
......@@ -221,7 +221,7 @@ int48ge(int32 val1, int64 * val2)
*---------------------------------------------------------*/
int64 *
int8um(int64 * val)
int8um(int64 *val)
{
int64 temp = 0;
int64 *result = palloc(sizeof(int64));
......@@ -236,7 +236,7 @@ int8um(int64 * val)
int64 *
int8pl(int64 * val1, int64 * val2)
int8pl(int64 *val1, int64 *val2)
{
int64 *result = palloc(sizeof(int64));
......@@ -249,7 +249,7 @@ int8pl(int64 * val1, int64 * val2)
} /* int8pl() */
int64 *
int8mi(int64 * val1, int64 * val2)
int8mi(int64 *val1, int64 *val2)
{
int64 *result = palloc(sizeof(int64));
......@@ -262,7 +262,7 @@ int8mi(int64 * val1, int64 * val2)
} /* int8mi() */
int64 *
int8mul(int64 * val1, int64 * val2)
int8mul(int64 *val1, int64 *val2)
{
int64 *result = palloc(sizeof(int64));
......@@ -275,7 +275,7 @@ int8mul(int64 * val1, int64 * val2)
} /* int8mul() */
int64 *
int8div(int64 * val1, int64 * val2)
int8div(int64 *val1, int64 *val2)
{
int64 *result = palloc(sizeof(int64));
......@@ -288,7 +288,7 @@ int8div(int64 * val1, int64 * val2)
} /* int8div() */
int64 *
int8larger(int64 * val1, int64 * val2)
int8larger(int64 *val1, int64 *val2)
{
int64 *result = palloc(sizeof(int64));
......@@ -301,7 +301,7 @@ int8larger(int64 * val1, int64 * val2)
} /* int8larger() */
int64 *
int8smaller(int64 * val1, int64 * val2)
int8smaller(int64 *val1, int64 *val2)
{
int64 *result = palloc(sizeof(int64));
......@@ -315,7 +315,7 @@ int8smaller(int64 * val1, int64 * val2)
int64 *
int84pl(int64 * val1, int32 val2)
int84pl(int64 *val1, int32 val2)
{
int64 *result = palloc(sizeof(int64));
......@@ -328,7 +328,7 @@ int84pl(int64 * val1, int32 val2)
} /* int84pl() */
int64 *
int84mi(int64 * val1, int32 val2)
int84mi(int64 *val1, int32 val2)
{
int64 *result = palloc(sizeof(int64));
......@@ -341,7 +341,7 @@ int84mi(int64 * val1, int32 val2)
} /* int84mi() */
int64 *
int84mul(int64 * val1, int32 val2)
int84mul(int64 *val1, int32 val2)
{
int64 *result = palloc(sizeof(int64));
......@@ -354,7 +354,7 @@ int84mul(int64 * val1, int32 val2)
} /* int84mul() */
int64 *
int84div(int64 * val1, int32 val2)
int84div(int64 *val1, int32 val2)
{
int64 *result = palloc(sizeof(int64));
......@@ -368,7 +368,7 @@ int84div(int64 * val1, int32 val2)
int64 *
int48pl(int32 val1, int64 * val2)
int48pl(int32 val1, int64 *val2)
{
int64 *result = palloc(sizeof(int64));
......@@ -381,7 +381,7 @@ int48pl(int32 val1, int64 * val2)
} /* int48pl() */
int64 *
int48mi(int32 val1, int64 * val2)
int48mi(int32 val1, int64 *val2)
{
int64 *result = palloc(sizeof(int64));
......@@ -394,7 +394,7 @@ int48mi(int32 val1, int64 * val2)
} /* int48mi() */
int64 *
int48mul(int32 val1, int64 * val2)
int48mul(int32 val1, int64 *val2)
{
int64 *result = palloc(sizeof(int64));
......@@ -407,7 +407,7 @@ int48mul(int32 val1, int64 * val2)
} /* int48mul() */
int64 *
int48div(int32 val1, int64 * val2)
int48div(int32 val1, int64 *val2)
{
int64 *result = palloc(sizeof(int64));
......@@ -435,7 +435,7 @@ int48(int32 val)
} /* int48() */
int32
int84(int64 * val)
int84(int64 *val)
{
int32 result;
......@@ -473,7 +473,7 @@ int28 (int16 val)
} /* int28() */
int16
int82(int64 * val)
int82(int64 *val)
{
int16 result;
......@@ -491,7 +491,7 @@ int82(int64 * val)
#endif
float64
i8tod(int64 * val)
i8tod(int64 *val)
{
float64 result = palloc(sizeof(float64data));
......@@ -546,7 +546,7 @@ text_int8(text *str)
/* int8_text()
*/
text *
int8_text(int64 * val)
int8_text(int64 *val)
{
text *result;
......
......@@ -5,7 +5,7 @@
*
* 1998 Jan Wieck
*
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numeric.c,v 1.15 1999/05/25 22:04:40 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numeric.c,v 1.16 1999/05/25 22:42:13 momjian Exp $
*
* ----------
*/
......@@ -114,7 +114,7 @@ static NumericVar const_nan =
#ifdef NUMERIC_DEBUG
static void dump_numeric(char *str, Numeric num);
static void dump_var(char *str, NumericVar * var);
static void dump_var(char *str, NumericVar *var);
#else
#define dump_numeric(s,n)
......@@ -122,37 +122,37 @@ static void dump_var(char *str, NumericVar * var);
#endif
static NumericDigitBuf *digitbuf_alloc(int size);
static void digitbuf_free(NumericDigitBuf * buf);
static void digitbuf_free(NumericDigitBuf *buf);
#define init_var(v) memset(v,0,sizeof(NumericVar))
static void free_var(NumericVar * var);
static void free_var(NumericVar *var);
static void free_allvars(void);
static void set_var_from_str(char *str, NumericVar * dest);
static void set_var_from_num(Numeric value, NumericVar * dest);
static void set_var_from_var(NumericVar * value, NumericVar * dest);
static Numeric make_result(NumericVar * var);
static void set_var_from_str(char *str, NumericVar *dest);
static void set_var_from_num(Numeric value, NumericVar *dest);
static void set_var_from_var(NumericVar *value, NumericVar *dest);
static Numeric make_result(NumericVar *var);
static void apply_typmod(NumericVar * var, int32 typmod);
static void apply_typmod(NumericVar *var, int32 typmod);
static int cmp_var(NumericVar * var1, NumericVar * var2);
static void add_var(NumericVar * var1, NumericVar * var2, NumericVar * result);
static void sub_var(NumericVar * var1, NumericVar * var2, NumericVar * result);
static void mul_var(NumericVar * var1, NumericVar * var2, NumericVar * result);
static void div_var(NumericVar * var1, NumericVar * var2, NumericVar * result);
static void mod_var(NumericVar * var1, NumericVar * var2, NumericVar * result);
static void ceil_var(NumericVar * var, NumericVar * result);
static void floor_var(NumericVar * var, NumericVar * result);
static int cmp_var(NumericVar *var1, NumericVar *var2);
static void add_var(NumericVar *var1, NumericVar *var2, NumericVar *result);
static void sub_var(NumericVar *var1, NumericVar *var2, NumericVar *result);
static void mul_var(NumericVar *var1, NumericVar *var2, NumericVar *result);
static void div_var(NumericVar *var1, NumericVar *var2, NumericVar *result);
static void mod_var(NumericVar *var1, NumericVar *var2, NumericVar *result);
static void ceil_var(NumericVar *var, NumericVar *result);
static void floor_var(NumericVar *var, NumericVar *result);
static void sqrt_var(NumericVar * arg, NumericVar * result);
static void exp_var(NumericVar * arg, NumericVar * result);
static void ln_var(NumericVar * arg, NumericVar * result);
static void log_var(NumericVar * base, NumericVar * num, NumericVar * result);
static void power_var(NumericVar * base, NumericVar * exp, NumericVar * result);
static void sqrt_var(NumericVar *arg, NumericVar *result);
static void exp_var(NumericVar *arg, NumericVar *result);
static void ln_var(NumericVar *arg, NumericVar *result);
static void log_var(NumericVar *base, NumericVar *num, NumericVar *result);
static void power_var(NumericVar *base, NumericVar *exp, NumericVar *result);
static int cmp_abs(NumericVar * var1, NumericVar * var2);
static void add_abs(NumericVar * var1, NumericVar * var2, NumericVar * result);
static void sub_abs(NumericVar * var1, NumericVar * var2, NumericVar * result);
static int cmp_abs(NumericVar *var1, NumericVar *var2);
static void add_abs(NumericVar *var1, NumericVar *var2, NumericVar *result);
static void sub_abs(NumericVar *var1, NumericVar *var2, NumericVar *result);
......@@ -1835,7 +1835,7 @@ dump_numeric(char *str, Numeric num)
* ----------
*/
static void
dump_var(char *str, NumericVar * var)
dump_var(char *str, NumericVar *var)
{
int i;
......@@ -1962,7 +1962,7 @@ digitbuf_alloc(int size)
* ----------
*/
static void
digitbuf_free(NumericDigitBuf * buf)
digitbuf_free(NumericDigitBuf *buf)
{
NumericDigitBuf *smallest;
......@@ -2048,7 +2048,7 @@ digitbuf_free(NumericDigitBuf * buf)
* ----------
*/
static void
free_var(NumericVar * var)
free_var(NumericVar *var)
{
if (var->buf != NULL)
{
......@@ -2096,7 +2096,7 @@ free_allvars(void)
* ----------
*/
static void
set_var_from_str(char *str, NumericVar * dest)
set_var_from_str(char *str, NumericVar *dest)
{
char *cp = str;
bool have_dp = FALSE;
......@@ -2238,7 +2238,7 @@ set_var_from_str(char *str, NumericVar * dest)
*
*/
static void
set_var_from_num(Numeric num, NumericVar * dest)
set_var_from_num(Numeric num, NumericVar *dest)
{
NumericDigit *digit;
int i;
......@@ -2275,7 +2275,7 @@ set_var_from_num(Numeric num, NumericVar * dest)
* ----------
*/
static void
set_var_from_var(NumericVar * value, NumericVar * dest)
set_var_from_var(NumericVar *value, NumericVar *dest)
{
NumericDigitBuf *newbuf;
NumericDigit *newdigits;
......@@ -2299,7 +2299,7 @@ set_var_from_var(NumericVar * value, NumericVar * dest)
* ----------
*/
static Numeric
make_result(NumericVar * var)
make_result(NumericVar *var)
{
Numeric result;
NumericDigit *digit = var->digits;
......@@ -2368,7 +2368,7 @@ make_result(NumericVar * var)
* ----------
*/
static void
apply_typmod(NumericVar * var, int32 typmod)
apply_typmod(NumericVar *var, int32 typmod)
{
int precision;
int scale;
......@@ -2439,7 +2439,7 @@ apply_typmod(NumericVar * var, int32 typmod)
* ----------
*/
static int
cmp_var(NumericVar * var1, NumericVar * var2)
cmp_var(NumericVar *var1, NumericVar *var2)
{
if (var1->ndigits == 0)
{
......@@ -2478,7 +2478,7 @@ cmp_var(NumericVar * var1, NumericVar * var2)
* ----------
*/
static void
add_var(NumericVar * var1, NumericVar * var2, NumericVar * result)
add_var(NumericVar *var1, NumericVar *var2, NumericVar *result)
{
/* ----------
* Decide on the signs of the two variables what to do
......@@ -2609,7 +2609,7 @@ add_var(NumericVar * var1, NumericVar * var2, NumericVar * result)
* ----------
*/
static void
sub_var(NumericVar * var1, NumericVar * var2, NumericVar * result)
sub_var(NumericVar *var1, NumericVar *var2, NumericVar *result)
{
/* ----------
* Decide on the signs of the two variables what to do
......@@ -2740,7 +2740,7 @@ sub_var(NumericVar * var1, NumericVar * var2, NumericVar * result)
* ----------
*/
static void
mul_var(NumericVar * var1, NumericVar * var2, NumericVar * result)
mul_var(NumericVar *var1, NumericVar *var2, NumericVar *result)
{
NumericDigitBuf *res_buf;
NumericDigit *res_digits;
......@@ -2825,7 +2825,7 @@ mul_var(NumericVar * var1, NumericVar * var2, NumericVar * result)
* ----------
*/
static void
div_var(NumericVar * var1, NumericVar * var2, NumericVar * result)
div_var(NumericVar *var1, NumericVar *var2, NumericVar *result)
{
NumericDigit *res_digits;
int res_ndigits;
......@@ -3046,7 +3046,7 @@ div_var(NumericVar * var1, NumericVar * var2, NumericVar * result)
* ----------
*/
static void
mod_var(NumericVar * var1, NumericVar * var2, NumericVar * result)
mod_var(NumericVar *var1, NumericVar *var2, NumericVar *result)
{
NumericVar tmp;
int save_global_rscale;
......@@ -3083,7 +3083,7 @@ mod_var(NumericVar * var1, NumericVar * var2, NumericVar * result)
* ----------
*/
static void
ceil_var(NumericVar * var, NumericVar * result)
ceil_var(NumericVar *var, NumericVar *result)
{
NumericVar tmp;
......@@ -3108,7 +3108,7 @@ ceil_var(NumericVar * var, NumericVar * result)
* ----------
*/
static void
floor_var(NumericVar * var, NumericVar * result)
floor_var(NumericVar *var, NumericVar *result)
{
NumericVar tmp;
......@@ -3132,7 +3132,7 @@ floor_var(NumericVar * var, NumericVar * result)
* ----------
*/
static void
sqrt_var(NumericVar * arg, NumericVar * result)
sqrt_var(NumericVar *arg, NumericVar *result)
{
NumericVar tmp_arg;
NumericVar tmp_val;
......@@ -3210,7 +3210,7 @@ sqrt_var(NumericVar * arg, NumericVar * result)
* ----------
*/
static void
exp_var(NumericVar * arg, NumericVar * result)
exp_var(NumericVar *arg, NumericVar *result)
{
NumericVar x;
NumericVar xpow;
......@@ -3304,7 +3304,7 @@ exp_var(NumericVar * arg, NumericVar * result)
* ----------
*/
static void
ln_var(NumericVar * arg, NumericVar * result)
ln_var(NumericVar *arg, NumericVar *result)
{
NumericVar x;
NumericVar xx;
......@@ -3382,7 +3382,7 @@ ln_var(NumericVar * arg, NumericVar * result)
* ----------
*/
static void
log_var(NumericVar * base, NumericVar * num, NumericVar * result)
log_var(NumericVar *base, NumericVar *num, NumericVar *result)
{
NumericVar ln_base;
NumericVar ln_num;
......@@ -3411,7 +3411,7 @@ log_var(NumericVar * base, NumericVar * num, NumericVar * result)
* ----------
*/
static void
power_var(NumericVar * base, NumericVar * exp, NumericVar * result)
power_var(NumericVar *base, NumericVar *exp, NumericVar *result)
{
NumericVar ln_base;
NumericVar ln_num;
......@@ -3455,7 +3455,7 @@ power_var(NumericVar * base, NumericVar * exp, NumericVar * result)
* ----------
*/
static int
cmp_abs(NumericVar * var1, NumericVar * var2)
cmp_abs(NumericVar *var1, NumericVar *var2)
{
int i1 = 0;
int i2 = 0;
......@@ -3513,7 +3513,7 @@ cmp_abs(NumericVar * var1, NumericVar * var2)
* ----------
*/
static void
add_abs(NumericVar * var1, NumericVar * var2, NumericVar * result)
add_abs(NumericVar *var1, NumericVar *var2, NumericVar *result)
{
NumericDigitBuf *res_buf;
NumericDigit *res_digits;
......@@ -3582,7 +3582,7 @@ add_abs(NumericVar * var1, NumericVar * var2, NumericVar * result)
* ----------
*/
static void
sub_abs(NumericVar * var1, NumericVar * var2, NumericVar * result)
sub_abs(NumericVar *var1, NumericVar *var2, NumericVar *result)
{
NumericDigitBuf *res_buf;
NumericDigit *res_digits;
......
......@@ -3,7 +3,7 @@
* out of it's tuple
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.16 1999/05/25 22:04:41 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.17 1999/05/25 22:42:13 momjian Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
......@@ -101,16 +101,16 @@ NameData *pg_get_userbyid(int4 uid);
*/
static char *make_ruledef(HeapTuple ruletup, TupleDesc rulettc);
static char *make_viewdef(HeapTuple ruletup, TupleDesc rulettc);
static char *get_query_def(Query *query, QryHier * parentqh);
static char *get_select_query_def(Query *query, QryHier * qh);
static char *get_insert_query_def(Query *query, QryHier * qh);
static char *get_update_query_def(Query *query, QryHier * qh);
static char *get_delete_query_def(Query *query, QryHier * qh);
static char *get_rule_expr(QryHier * qh, int rt_index, Node *node, bool varprefix);
static char *get_func_expr(QryHier * qh, int rt_index, Expr *expr, bool varprefix);
static char *get_tle_expr(QryHier * qh, int rt_index, TargetEntry *tle, bool varprefix);
static char *get_query_def(Query *query, QryHier *parentqh);
static char *get_select_query_def(Query *query, QryHier *qh);
static char *get_insert_query_def(Query *query, QryHier *qh);
static char *get_update_query_def(Query *query, QryHier *qh);
static char *get_delete_query_def(Query *query, QryHier *qh);
static char *get_rule_expr(QryHier *qh, int rt_index, Node *node, bool varprefix);
static char *get_func_expr(QryHier *qh, int rt_index, Expr *expr, bool varprefix);
static char *get_tle_expr(QryHier *qh, int rt_index, TargetEntry *tle, bool varprefix);
static char *get_const_expr(Const *constval);
static char *get_sublink_expr(QryHier * qh, int rt_index, Node *node, bool varprefix);
static char *get_sublink_expr(QryHier *qh, int rt_index, Node *node, bool varprefix);
static char *get_relation_name(Oid relid);
static char *get_attribute_name(Oid relid, int2 attnum);
static bool check_if_rte_used(int rt_index, Node *node, int sup);
......@@ -806,7 +806,7 @@ make_viewdef(HeapTuple ruletup, TupleDesc rulettc)
* ----------
*/
static char *
get_query_def(Query *query, QryHier * parentqh)
get_query_def(Query *query, QryHier *parentqh)
{
QryHier qh;
......@@ -850,7 +850,7 @@ get_query_def(Query *query, QryHier * parentqh)
* ----------
*/
static char *
get_select_query_def(Query *query, QryHier * qh)
get_select_query_def(Query *query, QryHier *qh)
{
char buf[BUFSIZE];
char *sep;
......@@ -1020,7 +1020,7 @@ get_select_query_def(Query *query, QryHier * qh)
* ----------
*/
static char *
get_insert_query_def(Query *query, QryHier * qh)
get_insert_query_def(Query *query, QryHier *qh)
{
char buf[BUFSIZE];
char *sep;
......@@ -1130,7 +1130,7 @@ get_insert_query_def(Query *query, QryHier * qh)
* ----------
*/
static char *
get_update_query_def(Query *query, QryHier * qh)
get_update_query_def(Query *query, QryHier *qh)
{
char buf[BUFSIZE];
char *sep;
......@@ -1183,7 +1183,7 @@ get_update_query_def(Query *query, QryHier * qh)
* ----------
*/
static char *
get_delete_query_def(Query *query, QryHier * qh)
get_delete_query_def(Query *query, QryHier *qh)
{
char buf[BUFSIZE];
RangeTblEntry *rte;
......@@ -1217,7 +1217,7 @@ get_delete_query_def(Query *query, QryHier * qh)
* ----------
*/
static char *
get_rule_expr(QryHier * qh, int rt_index, Node *node, bool varprefix)
get_rule_expr(QryHier *qh, int rt_index, Node *node, bool varprefix)
{
char buf[BUFSIZE];
......@@ -1417,7 +1417,7 @@ get_rule_expr(QryHier * qh, int rt_index, Node *node, bool varprefix)
* ----------
*/
static char *
get_func_expr(QryHier * qh, int rt_index, Expr *expr, bool varprefix)
get_func_expr(QryHier *qh, int rt_index, Expr *expr, bool varprefix)
{
char buf[BUFSIZE];
HeapTuple proctup;
......@@ -1496,7 +1496,7 @@ get_func_expr(QryHier * qh, int rt_index, Expr *expr, bool varprefix)
* ----------
*/
static char *
get_tle_expr(QryHier * qh, int rt_index, TargetEntry *tle, bool varprefix)
get_tle_expr(QryHier *qh, int rt_index, TargetEntry *tle, bool varprefix)
{
HeapTuple proctup;
Form_pg_proc procStruct;
......@@ -1605,7 +1605,7 @@ get_const_expr(Const *constval)
* ----------
*/
static char *
get_sublink_expr(QryHier * qh, int rt_index, Node *node, bool varprefix)
get_sublink_expr(QryHier *qh, int rt_index, Node *node, bool varprefix)
{
SubLink *sublink = (SubLink *) node;
Query *query = (Query *) (sublink->subselect);
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.25 1999/05/25 16:12:23 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.26 1999/05/25 22:42:15 momjian Exp $
*
* NOTES
* These routines allow the parser/planner/executor to perform
......@@ -205,7 +205,7 @@ static struct cachedesc cacheinfo[] = {
0,
0
},
offsetof(FormData_pg_type, typalign) + sizeof(char),
offsetof(FormData_pg_type, typalign) +sizeof(char),
TypeNameIndex,
TypeNameIndexScan},
{TypeRelationName, /* TYPOID */
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.3 1999/05/25 16:12:24 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.4 1999/05/25 22:42:16 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
......@@ -7,7 +7,7 @@
*
* 1999/1/15 Tatsuo Ishii
*
* $Id: big5.c,v 1.3 1999/05/25 22:04:45 momjian Exp $
* $Id: big5.c,v 1.4 1999/05/25 22:42:19 momjian Exp $
*/
#include "mb/pg_wchar.h"
......@@ -218,7 +218,7 @@ static unsigned short BinarySearchRange
{
if (0 == array[mid].peer)
return 0;
if (code >= (unsigned)0xa140)
if (code >= (unsigned) 0xa140)
{
/* big5 to cns */
tmp = ((code & 0xff00) - (array[mid].code & 0xff00)) >> 8;
......@@ -292,7 +292,7 @@ BIG5toCNS(unsigned short big5, unsigned char *lc)
unsigned short cns = 0;
int i;
if (big5 < (unsigned)0xc940)
if (big5 < (unsigned) 0xc940)
{
/* level 1 */
......@@ -301,14 +301,14 @@ BIG5toCNS(unsigned short big5, unsigned char *lc)
if (b1c4[i][0] == big5)
{
*lc = LC_CNS11643_4;
return (b1c4[i][1] | (unsigned)0x8080);
return (b1c4[i][1] | (unsigned) 0x8080);
}
}
if (0 < (cns = BinarySearchRange(big5Level1ToCnsPlane1, 23, big5)))
*lc = LC_CNS11643_1;
}
else if (big5 == (unsigned)0xc94a)
else if (big5 == (unsigned) 0xc94a)
{
/* level 2 */
*lc = LC_CNS11643_1;
......
......@@ -2,7 +2,7 @@
* conversion between client encoding and server internal encoding
* (currently mule internal code (mic) is used)
* Tatsuo Ishii
* $Id: conv.c,v 1.9 1999/05/25 22:04:47 momjian Exp $
* $Id: conv.c,v 1.10 1999/05/25 22:42:20 momjian Exp $
*/
#include <stdio.h>
#include <string.h>
......@@ -384,7 +384,7 @@ big52mic(unsigned char *big5, unsigned char *p, int len)
while (len > 0 && (c1 = *big5++))
{
if (c1 <= (unsigned)0x7f)
if (c1 <= (unsigned) 0x7f)
{ /* ASCII */
len--;
*p++ = c1;
......
......@@ -4,7 +4,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: psort.c,v 1.52 1999/05/25 16:12:59 momjian Exp $
* $Id: psort.c,v 1.53 1999/05/25 22:42:22 momjian Exp $
*
* NOTES
* Sorts the first relation into the second relation.
......@@ -55,9 +55,9 @@
#include "utils/rel.h"
static bool createfirstrun(Sort *node);
static bool createrun(Sort *node, BufFile * file);
static void destroytape(BufFile * file);
static void dumptuples(BufFile * file, Sort *node);
static bool createrun(Sort *node, BufFile *file);
static void destroytape(BufFile *file);
static void dumptuples(BufFile *file, Sort *node);
static BufFile *gettape(void);
static void initialrun(Sort *node);
static void inittapes(Sort *node);
......@@ -473,7 +473,7 @@ createfirstrun(Sort *node)
* Tuples contains the tuples for the following run upon exit
*/
static bool
createrun(Sort *node, BufFile * file)
createrun(Sort *node, BufFile *file)
{
HeapTuple lasttuple;
HeapTuple tup;
......@@ -720,7 +720,7 @@ merge(Sort *node, struct tape * dest)
* dumptuples - stores all the tuples in tree into file
*/
static void
dumptuples(BufFile * file, Sort *node)
dumptuples(BufFile *file, Sort *node)
{
struct leftist *tp;
struct leftist *newp;
......@@ -996,7 +996,7 @@ gettape()
* destroytape - unlinks the tape
*/
static void
destroytape(BufFile * file)
destroytape(BufFile *file)
{
BufFileClose(file);
}
......
......@@ -73,7 +73,7 @@ main(int argc, char **argv)
*/
int
Tcl_AppInit(Tcl_Interp * interp)
Tcl_AppInit(Tcl_Interp *interp)
{
if (Tcl_Init(interp) == TCL_ERROR)
return TCL_ERROR;
......
......@@ -72,7 +72,7 @@ main(int argc, char **argv)
*/
int
Tcl_AppInit(Tcl_Interp * interp)
Tcl_AppInit(Tcl_Interp *interp)
{
if (Tcl_Init(interp) == TCL_ERROR)
return TCL_ERROR;
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: hash.h,v 1.23 1999/05/25 16:13:27 momjian Exp $
* $Id: hash.h,v 1.24 1999/05/25 22:42:30 momjian Exp $
*
* NOTES
* modeled after Margo Seltzer's hash implementation for unix.
......@@ -265,7 +265,7 @@ extern void hashdelete(Relation rel, ItemPointer tid);
/* hashfunc.c */
extern uint32 hashint2(int16 key);
extern uint32 hashint4(uint32 key);
extern uint32 hashint8(int64 * key);
extern uint32 hashint8(int64 *key);
extern uint32 hashfloat4(float32 keyp);
extern uint32 hashfloat8(float64 keyp);
extern uint32 hashoid(Oid key);
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: htup.h,v 1.15 1999/05/25 16:13:31 momjian Exp $
* $Id: htup.h,v 1.16 1999/05/25 22:42:32 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: printtup.h,v 1.9 1999/05/25 16:13:33 momjian Exp $
* $Id: printtup.h,v 1.10 1999/05/25 22:42:32 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -18,13 +18,13 @@
extern DestReceiver *printtup_create_DR(void);
extern void showatts(char *name, TupleDesc attinfo);
extern void debugtup(HeapTuple tuple, TupleDesc typeinfo,
DestReceiver * self);
DestReceiver *self);
extern void printtup_internal(HeapTuple tuple, TupleDesc typeinfo,
DestReceiver * self);
DestReceiver *self);
/* XXX this one is really in executor/spi.c */
extern void spi_printtup(HeapTuple tuple, TupleDesc tupdesc,
DestReceiver * self);
DestReceiver *self);
extern int getTypeOutAndElem(Oid type, Oid *typOutput, Oid *typElem);
......
......@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: strat.h,v 1.14 1999/05/25 22:04:56 momjian Exp $
* $Id: strat.h,v 1.15 1999/05/25 22:42:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -33,6 +33,7 @@ typedef struct StrategyTransformMapData
*
*
*
*
* STRUCTURE */
typedef StrategyTransformMapData *StrategyTransformMap;
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: transam.h,v 1.20 1999/05/25 16:13:35 momjian Exp $
* $Id: transam.h,v 1.21 1999/05/25 22:42:35 momjian Exp $
*
* NOTES
* Transaction System Version 101 now support proper oid
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: tupdesc.h,v 1.21 1999/02/13 23:20:59 momjian Exp $
* $Id: tupdesc.h,v 1.22 1999/05/25 22:42:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -57,7 +57,7 @@ typedef struct tupleDesc
extern TupleDesc CreateTemplateTupleDesc(int natts);
extern TupleDesc CreateTupleDesc(int natts, Form_pg_attribute * attrs);
extern TupleDesc CreateTupleDesc(int natts, Form_pg_attribute *attrs);
extern TupleDesc CreateTupleDescCopy(TupleDesc tupdesc);
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: command.h,v 1.13 1999/05/25 16:13:49 momjian Exp $
* $Id: command.h,v 1.14 1999/05/25 22:42:41 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -44,6 +44,6 @@ extern void PortalCleanup(Portal portal);
extern void PerformAddAttribute(char *relationName, char *userName,
bool inh, ColumnDef *colDef);
extern void LockTableCommand(LockStmt * lockstmt);
extern void LockTableCommand(LockStmt *lockstmt);
#endif /* COMMAND_H */
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: vacuum.h,v 1.19 1999/05/25 16:13:50 momjian Exp $
* $Id: vacuum.h,v 1.20 1999/05/25 22:42:43 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: hashjoin.h,v 1.12 1999/05/25 16:13:54 momjian Exp $
* $Id: hashjoin.h,v 1.13 1999/05/25 22:42:45 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodeHashjoin.h,v 1.13 1999/05/25 16:13:56 momjian Exp $
* $Id: nodeHashjoin.h,v 1.14 1999/05/25 22:42:46 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -21,7 +21,7 @@ extern TupleTableSlot *ExecHashJoin(HashJoin *node);
extern bool ExecInitHashJoin(HashJoin *node, EState *estate, Plan *parent);
extern int ExecCountSlotsHashJoin(HashJoin *node);
extern void ExecEndHashJoin(HashJoin *node);
extern void ExecHashJoinSaveTuple(HeapTuple heapTuple, BufFile * file);
extern void ExecHashJoinSaveTuple(HeapTuple heapTuple, BufFile *file);
extern void ExecReScanHashJoin(HashJoin *node, ExprContext *exprCtxt, Plan *parent);
#endif /* NODEHASHJOIN_H */
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: libpq.h,v 1.29 1999/05/25 16:14:00 momjian Exp $
* $Id: libpq.h,v 1.30 1999/05/25 22:42:50 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -220,7 +220,7 @@ extern PortalEntry *be_newportal(void);
extern void be_typeinit(PortalEntry *entry, TupleDesc attrs,
int natts);
extern void be_printtup(HeapTuple tuple, TupleDesc typeinfo,
DestReceiver * self);
DestReceiver *self);
/* in be-pqexec.c */
......
......@@ -8,7 +8,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pqcomm.h,v 1.35 1999/05/03 19:10:24 momjian Exp $
* $Id: pqcomm.h,v 1.36 1999/05/25 22:42:51 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: execnodes.h,v 1.29 1999/05/25 16:14:07 momjian Exp $
* $Id: execnodes.h,v 1.30 1999/05/25 22:42:54 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: memnodes.h,v 1.12 1999/05/25 16:14:09 momjian Exp $
* $Id: memnodes.h,v 1.13 1999/05/25 22:42:55 momjian Exp $
*
* XXX the typedefs in this file are different from the other ???nodes.h;
* they are pointers to structures instead of the structures themselves.
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: parsenodes.h,v 1.73 1999/05/25 16:14:09 momjian Exp $
* $Id: parsenodes.h,v 1.74 1999/05/25 22:42:57 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: plannodes.h,v 1.26 1999/05/25 16:14:10 momjian Exp $
* $Id: plannodes.h,v 1.27 1999/05/25 22:42:58 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: primnodes.h,v 1.28 1999/05/25 16:14:11 momjian Exp $
* $Id: primnodes.h,v 1.29 1999/05/25 22:42:59 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: relation.h,v 1.31 1999/05/25 16:14:12 momjian Exp $
* $Id: relation.h,v 1.32 1999/05/25 22:43:01 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: clauses.h,v 1.17 1999/05/25 16:14:15 momjian Exp $
* $Id: clauses.h,v 1.18 1999/05/25 22:43:03 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -38,7 +38,7 @@ extern Expr *make_andclause(List *andclauses);
extern bool case_clause(Node *clause);
extern List *pull_constant_clauses(List *quals, List **constantQual);
extern void clause_get_relids_vars(Node *clause, Relids * relids, List **vars);
extern void clause_get_relids_vars(Node *clause, Relids *relids, List **vars);
extern int NumRelids(Node *clause);
extern bool contains_not(Node *clause);
extern bool is_joinable(Node *clause);
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: cost.h,v 1.19 1999/05/25 16:14:16 momjian Exp $
* $Id: cost.h,v 1.20 1999/05/25 22:43:04 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -43,8 +43,8 @@ extern Cost cost_mergejoin(Cost outercost, Cost innercost,
extern Cost cost_hashjoin(Cost outercost, Cost innercost, List *outerkeys,
List *innerkeys, int outersize, int innersize,
int outerwidth, int innerwidth);
extern int compute_rel_size(RelOptInfo * rel);
extern int compute_rel_width(RelOptInfo * rel);
extern int compute_rel_size(RelOptInfo *rel);
extern int compute_rel_width(RelOptInfo *rel);
extern int compute_joinrel_size(JoinPath *joinpath);
extern int page_size(int tuples, int width);
......
......@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo.h,v 1.15 1999/05/25 16:14:16 momjian Exp $
* $Id: geqo.h,v 1.16 1999/05/25 22:43:05 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -72,6 +72,6 @@ extern void geqo_params(int string_length);
extern void geqo_eval_startup(void);
extern Cost geqo_eval(Query *root, Gene *tour, int num_gene);
extern RelOptInfo *gimme_tree(Query *root, Gene *tour, int rel_count,
int num_gene, RelOptInfo * old_rel);
int num_gene, RelOptInfo *old_rel);
#endif /* GEQO_H */
......@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo_misc.h,v 1.10 1999/05/25 16:14:17 momjian Exp $
* $Id: geqo_misc.h,v 1.11 1999/05/25 22:43:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -31,7 +31,7 @@ extern void print_pool(FILE *fp, Pool *pool, int start, int stop);
extern void print_gen(FILE *fp, Pool *pool, int generation);
extern void print_edge_table(FILE *fp, Edge *edge_table, int num_gene);
extern void geqo_print_rel(Query *root, RelOptInfo * rel);
extern void geqo_print_rel(Query *root, RelOptInfo *rel);
extern void geqo_print_path(Query *root, Path *path, int indent);
extern void geqo_print_joinclauses(Query *root, List *clauses);
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: joininfo.h,v 1.11 1999/05/25 16:14:19 momjian Exp $
* $Id: joininfo.h,v 1.12 1999/05/25 22:43:08 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -18,7 +18,7 @@
#include "nodes/primnodes.h"
extern JoinInfo *joininfo_member(List *join_relids, List *joininfo_list);
extern JoinInfo *find_joininfo_node(RelOptInfo * this_rel, List *join_relids);
extern JoinInfo *find_joininfo_node(RelOptInfo *this_rel, List *join_relids);
extern Var *other_join_clause_var(Var *var, Expr *clause);
#endif /* JOININFO_H */
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: keys.h,v 1.14 1999/05/25 16:14:19 momjian Exp $
* $Id: keys.h,v 1.15 1999/05/25 22:43:09 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -16,7 +16,7 @@
#include "nodes/nodes.h"
#include "nodes/relation.h"
extern bool match_indexkey_operand(int indexkey, Var *operand, RelOptInfo * rel);
extern bool match_indexkey_operand(int indexkey, Var *operand, RelOptInfo *rel);
extern Var *extract_join_key(JoinKey *jk, int outer_or_inner);
extern bool pathkeys_match(List *keys1, List *keys2, int *better_key);
extern List *collect_index_pathkeys(int *index_keys, List *tlist);
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pathnode.h,v 1.16 1999/05/25 16:14:20 momjian Exp $
* $Id: pathnode.h,v 1.17 1999/05/25 22:43:10 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -21,20 +21,20 @@
* prototypes for pathnode.c
*/
extern bool path_is_cheaper(Path *path1, Path *path2);
extern Path *set_cheapest(RelOptInfo * parent_rel, List *pathlist);
extern List *add_pathlist(RelOptInfo * parent_rel, List *unique_paths,
extern Path *set_cheapest(RelOptInfo *parent_rel, List *pathlist);
extern List *add_pathlist(RelOptInfo *parent_rel, List *unique_paths,
List *new_paths);
extern Path *create_seqscan_path(RelOptInfo * rel);
extern IndexPath *create_index_path(Query *root, RelOptInfo * rel, RelOptInfo * index,
extern Path *create_seqscan_path(RelOptInfo *rel);
extern IndexPath *create_index_path(Query *root, RelOptInfo *rel, RelOptInfo *index,
List *restriction_clauses, bool is_join_scan);
extern NestPath *create_nestloop_path(RelOptInfo * joinrel, RelOptInfo * outer_rel,
extern NestPath *create_nestloop_path(RelOptInfo *joinrel, RelOptInfo *outer_rel,
Path *outer_path, Path *inner_path, List *pathkeys);
extern MergePath *create_mergejoin_path(RelOptInfo * joinrel, int outersize,
extern MergePath *create_mergejoin_path(RelOptInfo *joinrel, int outersize,
int innersize, int outerwidth, int innerwidth, Path *outer_path,
Path *inner_path, List *pathkeys, MergeOrder *order,
List *mergeclauses, List *outersortkeys, List *innersortkeys);
extern HashPath *create_hashjoin_path(RelOptInfo * joinrel, int outersize,
extern HashPath *create_hashjoin_path(RelOptInfo *joinrel, int outersize,
int innersize, int outerwidth, int innerwidth, Path *outer_path,
Path *inner_path, List *pathkeys, Oid operator, List *hashclauses,
List *outerkeys, List *innerkeys);
......@@ -49,6 +49,6 @@ extern RelOptInfo *get_join_rel(Query *root, Relids relid);
/*
* prototypes for indexnode.h
*/
extern List *find_relation_indices(Query *root, RelOptInfo * rel);
extern List *find_relation_indices(Query *root, RelOptInfo *rel);
#endif /* PATHNODE_H */
......@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: paths.h,v 1.28 1999/05/25 16:14:21 momjian Exp $
* $Id: paths.h,v 1.29 1999/05/25 22:43:11 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -27,7 +27,7 @@ extern RelOptInfo *make_one_rel(Query *root, List *rels);
* indxpath.h
* routines to generate index paths
*/
extern List *create_index_paths(Query *root, RelOptInfo * rel, List *indices,
extern List *create_index_paths(Query *root, RelOptInfo *rel, List *indices,
List *restrictinfo_list,
List *joininfo_list);
......@@ -41,7 +41,7 @@ extern void update_rels_pathlist_for_joins(Query *root, List *joinrels);
/*
* orindxpath.h
*/
extern List *create_or_index_paths(Query *root, RelOptInfo * rel, List *clauses);
extern List *create_or_index_paths(Query *root, RelOptInfo *rel, List *clauses);
/*
* hashutils.h
......@@ -79,11 +79,11 @@ extern MergeInfo *match_order_mergeinfo(PathOrder *ordering,
* routines to determine which relations to join
*/
extern List *make_rels_by_joins(Query *root, List *old_rels);
extern List *make_rels_by_clause_joins(Query *root, RelOptInfo * old_rel,
extern List *make_rels_by_clause_joins(Query *root, RelOptInfo *old_rel,
List *joininfo_list, Relids only_relids);
extern List *make_rels_by_clauseless_joins(RelOptInfo * old_rel,
extern List *make_rels_by_clauseless_joins(RelOptInfo *old_rel,
List *inner_rels);
extern RelOptInfo *make_join_rel(RelOptInfo * outer_rel, RelOptInfo * inner_rel, JoinInfo * joininfo);
extern RelOptInfo *make_join_rel(RelOptInfo *outer_rel, RelOptInfo *inner_rel, JoinInfo *joininfo);
extern List *new_join_tlist(List *tlist, int first_resdomno);
extern RelOptInfo *get_cheapest_complete_rel(List *join_rel_list);
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: restrictinfo.h,v 1.3 1999/05/25 16:14:22 momjian Exp $
* $Id: restrictinfo.h,v 1.4 1999/05/25 22:43:12 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -16,7 +16,7 @@
#include "nodes/pg_list.h"
#include "nodes/relation.h"
extern bool valid_or_clause(RestrictInfo * restrictinfo);
extern bool valid_or_clause(RestrictInfo *restrictinfo);
extern List *get_actual_clauses(List *restrictinfo_list);
extern void get_relattvals(List *restrictinfo_list, List **attnos,
List **values, List **flags);
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: tlist.h,v 1.17 1999/05/25 16:14:23 momjian Exp $
* $Id: tlist.h,v 1.18 1999/05/25 22:43:13 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -19,7 +19,7 @@
extern TargetEntry *tlistentry_member(Var *var, List *targetlist);
extern Expr *matching_tlist_var(Var *var, List *targetlist);
extern void add_var_to_tlist(RelOptInfo * rel, Var *var);
extern void add_var_to_tlist(RelOptInfo *rel, Var *var);
extern TargetEntry *create_tl_element(Var *var, int resdomno);
extern List *get_actual_tlist(List *tlist);
extern Resdom *tlist_member(Var *var, List *tlist);
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: xfunc.h,v 1.17 1999/05/25 16:14:23 momjian Exp $
* $Id: xfunc.h,v 1.18 1999/05/25 22:43:14 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -49,10 +49,10 @@ extern int XfuncMode; /* defined in tcop/postgres.c */
#define is_join(pathnode) (length(get_relids(get_parent(pathnode))) > 1 ? 1 : 0)
/* function prototypes from planner/path/xfunc.c */
extern void xfunc_trypullup(RelOptInfo * rel);
extern void xfunc_trypullup(RelOptInfo *rel);
extern int xfunc_shouldpull(Path *childpath, JoinPath *parentpath,
int whichchild, RestrictInfo * maxcinfopt);
extern RestrictInfo *xfunc_pullup(Path *childpath, JoinPath *parentpath, RestrictInfo * cinfo,
int whichchild, RestrictInfo *maxcinfopt);
extern RestrictInfo *xfunc_pullup(Path *childpath, JoinPath *parentpath, RestrictInfo *cinfo,
int whichchild, int clausetype);
extern Cost xfunc_rank(Expr *clause);
extern Cost xfunc_expense(Query *queryInfo, Expr *clause);
......@@ -69,7 +69,7 @@ extern List *xfunc_primary_join(JoinPath *pathnode);
extern Cost xfunc_get_path_cost(Path *pathnode);
extern Cost xfunc_total_path_cost(JoinPath *pathnode);
extern Cost xfunc_expense_per_tuple(JoinPath *joinnode, int whichchild);
extern void xfunc_fixvars(Expr *clause, RelOptInfo * rel, int varno);
extern void xfunc_fixvars(Expr *clause, RelOptInfo *rel, int varno);
extern int xfunc_cinfo_compare(void *arg1, void *arg2);
extern int xfunc_clause_compare(void *arg1, void *arg2);
extern void xfunc_disjunct_sort(List *clause_list);
......@@ -78,7 +78,7 @@ extern int xfunc_func_width(RegProcedure funcid, List *args);
extern int xfunc_tuple_width(Relation rd);
extern int xfunc_num_join_clauses(JoinPath *path);
extern List *xfunc_LispRemove(List *foo, List *bar);
extern bool xfunc_copyrel(RelOptInfo * from, RelOptInfo ** to);
extern bool xfunc_copyrel(RelOptInfo *from, RelOptInfo **to);
/*
* function prototypes for path/predmig.c
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: parse_agg.h,v 1.9 1999/05/25 16:14:26 momjian Exp $
* $Id: parse_agg.h,v 1.10 1999/05/25 22:43:16 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -18,7 +18,7 @@
#include <nodes/primnodes.h>
#include <parser/parse_node.h>
extern void AddAggToParseState(ParseState *pstate, Aggref * aggref);
extern void AddAggToParseState(ParseState *pstate, Aggref *aggref);
extern void parseCheckAggregates(ParseState *pstate, Query *qry);
extern Aggref *ParseAgg(ParseState *pstate, char *aggname, Oid basetype,
List *target, int precedence);
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: parse_coerce.h,v 1.11 1999/05/25 16:14:26 momjian Exp $
* $Id: parse_coerce.h,v 1.12 1999/05/25 22:43:17 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: fd.h,v 1.14 1999/05/25 16:14:41 momjian Exp $
* $Id: fd.h,v 1.15 1999/05/25 22:43:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -91,11 +91,11 @@ extern void FreeFile(FILE *);
* atop virtual Files...
*/
extern BufFile *BufFileCreate(File file);
extern void BufFileClose(BufFile * file);
extern size_t BufFileRead(BufFile * file, void *ptr, size_t size);
extern size_t BufFileWrite(BufFile * file, void *ptr, size_t size);
extern int BufFileFlush(BufFile * file);
extern long BufFileSeek(BufFile * file, long offset, int whence);
extern void BufFileClose(BufFile *file);
extern size_t BufFileRead(BufFile *file, void *ptr, size_t size);
extern size_t BufFileWrite(BufFile *file, void *ptr, size_t size);
extern int BufFileFlush(BufFile *file);
extern long BufFileSeek(BufFile *file, long offset, int whence);
/* Miscellaneous support routines */
extern int FileNameUnlink(char *filename);
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: lmgr.h,v 1.19 1999/05/07 01:23:05 vadim Exp $
* $Id: lmgr.h,v 1.20 1999/05/25 22:43:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: lock.h,v 1.27 1999/05/25 16:14:42 momjian Exp $
* $Id: lock.h,v 1.28 1999/05/25 22:43:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: proc.h,v 1.23 1999/05/25 16:14:45 momjian Exp $
* $Id: proc.h,v 1.24 1999/05/25 22:43:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -119,7 +119,7 @@ extern bool ProcRemove(int pid);
/* make static in storage/lmgr/proc.c -- jolly */
extern void ProcQueueInit(PROC_QUEUE *queue);
extern int ProcSleep(PROC_QUEUE *queue, LOCKMETHODCTL * lockctl, int token,
extern int ProcSleep(PROC_QUEUE *queue, LOCKMETHODCTL *lockctl, int token,
LOCK *lock);
extern PROC *ProcWakeup(PROC *proc, int errType);
extern int ProcLockWakeup(PROC_QUEUE *queue, LOCKMETHOD lockmethod,
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: shmem.h,v 1.17 1999/05/25 16:14:45 momjian Exp $
* $Id: shmem.h,v 1.18 1999/05/25 22:43:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
......@@ -44,7 +44,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: dest.h,v 1.19 1999/05/25 16:14:47 momjian Exp $
* $Id: dest.h,v 1.20 1999/05/25 22:43:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -82,10 +82,10 @@ struct _DestReceiver
{
/* Called for each tuple to be output: */
void (*receiveTuple) (HeapTuple tuple, TupleDesc typeinfo,
DestReceiver * self);
DestReceiver *self);
/* Initialization and teardown: */
void (*setup) (DestReceiver * self, TupleDesc typeinfo);
void (*cleanup) (DestReceiver * self);
void (*setup) (DestReceiver *self, TupleDesc typeinfo);
void (*cleanup) (DestReceiver *self);
/* Private fields might appear beyond this point... */
};
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: builtins.h,v 1.79 1999/05/25 16:14:52 momjian Exp $
* $Id: builtins.h,v 1.80 1999/05/25 22:43:31 momjian Exp $
*
* NOTES
* This should normally only be included by fmgr.h.
......@@ -164,7 +164,7 @@ extern void ltoa(int32 l, char *a);
*/
extern int32 btint2cmp(int16 a, int16 b);
extern int32 btint4cmp(int32 a, int32 b);
extern int32 btint8cmp(int64 * a, int64 * b);
extern int32 btint8cmp(int64 *a, int64 *b);
extern int32 btint24cmp(int16 a, int32 b);
extern int32 btint42cmp(int32 a, int16 b);
extern int32 btfloat4cmp(float32 a, float32 b);
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: inet.h,v 1.4 1999/05/25 16:14:54 momjian Exp $
* $Id: inet.h,v 1.5 1999/05/25 22:43:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
......@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: int8.h,v 1.13 1999/05/25 16:14:55 momjian Exp $
* $Id: int8.h,v 1.14 1999/05/25 22:43:35 momjian Exp $
*
* NOTES
* These data types are supported on all 64-bit architectures, and may
......@@ -47,60 +47,60 @@ typedef long int int64;
extern int64 *int8in(char *str);
extern char *int8out(int64 * val);
extern bool int8eq(int64 * val1, int64 * val2);
extern bool int8ne(int64 * val1, int64 * val2);
extern bool int8lt(int64 * val1, int64 * val2);
extern bool int8gt(int64 * val1, int64 * val2);
extern bool int8le(int64 * val1, int64 * val2);
extern bool int8ge(int64 * val1, int64 * val2);
extern bool int84eq(int64 * val1, int32 val2);
extern bool int84ne(int64 * val1, int32 val2);
extern bool int84lt(int64 * val1, int32 val2);
extern bool int84gt(int64 * val1, int32 val2);
extern bool int84le(int64 * val1, int32 val2);
extern bool int84ge(int64 * val1, int32 val2);
extern bool int48eq(int32 val1, int64 * val2);
extern bool int48ne(int32 val1, int64 * val2);
extern bool int48lt(int32 val1, int64 * val2);
extern bool int48gt(int32 val1, int64 * val2);
extern bool int48le(int32 val1, int64 * val2);
extern bool int48ge(int32 val1, int64 * val2);
extern int64 *int8um(int64 * val);
extern int64 *int8pl(int64 * val1, int64 * val2);
extern int64 *int8mi(int64 * val1, int64 * val2);
extern int64 *int8mul(int64 * val1, int64 * val2);
extern int64 *int8div(int64 * val1, int64 * val2);
extern int64 *int8larger(int64 * val1, int64 * val2);
extern int64 *int8smaller(int64 * val1, int64 * val2);
extern int64 *int84pl(int64 * val1, int32 val2);
extern int64 *int84mi(int64 * val1, int32 val2);
extern int64 *int84mul(int64 * val1, int32 val2);
extern int64 *int84div(int64 * val1, int32 val2);
extern int64 *int48pl(int32 val1, int64 * val2);
extern int64 *int48mi(int32 val1, int64 * val2);
extern int64 *int48mul(int32 val1, int64 * val2);
extern int64 *int48div(int32 val1, int64 * val2);
extern char *int8out(int64 *val);
extern bool int8eq(int64 *val1, int64 *val2);
extern bool int8ne(int64 *val1, int64 *val2);
extern bool int8lt(int64 *val1, int64 *val2);
extern bool int8gt(int64 *val1, int64 *val2);
extern bool int8le(int64 *val1, int64 *val2);
extern bool int8ge(int64 *val1, int64 *val2);
extern bool int84eq(int64 *val1, int32 val2);
extern bool int84ne(int64 *val1, int32 val2);
extern bool int84lt(int64 *val1, int32 val2);
extern bool int84gt(int64 *val1, int32 val2);
extern bool int84le(int64 *val1, int32 val2);
extern bool int84ge(int64 *val1, int32 val2);
extern bool int48eq(int32 val1, int64 *val2);
extern bool int48ne(int32 val1, int64 *val2);
extern bool int48lt(int32 val1, int64 *val2);
extern bool int48gt(int32 val1, int64 *val2);
extern bool int48le(int32 val1, int64 *val2);
extern bool int48ge(int32 val1, int64 *val2);
extern int64 *int8um(int64 *val);
extern int64 *int8pl(int64 *val1, int64 *val2);
extern int64 *int8mi(int64 *val1, int64 *val2);
extern int64 *int8mul(int64 *val1, int64 *val2);
extern int64 *int8div(int64 *val1, int64 *val2);
extern int64 *int8larger(int64 *val1, int64 *val2);
extern int64 *int8smaller(int64 *val1, int64 *val2);
extern int64 *int84pl(int64 *val1, int32 val2);
extern int64 *int84mi(int64 *val1, int32 val2);
extern int64 *int84mul(int64 *val1, int32 val2);
extern int64 *int84div(int64 *val1, int32 val2);
extern int64 *int48pl(int32 val1, int64 *val2);
extern int64 *int48mi(int32 val1, int64 *val2);
extern int64 *int48mul(int32 val1, int64 *val2);
extern int64 *int48div(int32 val1, int64 *val2);
extern int64 *int48(int32 val);
extern int32 int84(int64 * val);
extern int32 int84(int64 *val);
#if NOT_USED
extern int64 *int28 (int16 val);
extern int16 int82(int64 * val);
extern int16 int82(int64 *val);
#endif
extern float64 i8tod(int64 * val);
extern float64 i8tod(int64 *val);
extern int64 *dtoi8(float64 val);
extern text *int8_text(int64 * val);
extern text *int8_text(int64 *val);
extern int64 *text_int8(text *str);
#endif /* INT8_H */
......@@ -15,7 +15,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: memutils.h,v 1.25 1999/05/25 16:14:56 momjian Exp $
* $Id: memutils.h,v 1.26 1999/05/25 22:43:36 momjian Exp $
*
* NOTES
* some of the information in this file will be moved to
......
......@@ -5,7 +5,7 @@
*
* 1998 Jan Wieck
*
* $Header: /cvsroot/pgsql/src/include/utils/numeric.h,v 1.5 1999/05/25 16:14:56 momjian Exp $
* $Header: /cvsroot/pgsql/src/include/utils/numeric.h,v 1.6 1999/05/25 22:43:37 momjian Exp $
*
* ----------
*/
......
......@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: tqual.h,v 1.21 1999/05/25 16:14:58 momjian Exp $
* $Id: tqual.h,v 1.22 1999/05/25 22:43:39 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment