mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +03:00
Mark functions as static and ifdef NOT_USED as appropriate.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.62 2000/05/30 00:49:50 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.63 2000/06/08 22:37:18 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -35,7 +35,7 @@ static char *clauseText[] = {"ORDER BY", "GROUP BY", "DISTINCT ON"};
|
||||
static TargetEntry *findTargetlistEntry(ParseState *pstate, Node *node,
|
||||
List *tlist, int clause);
|
||||
static void parseFromClause(ParseState *pstate, List *frmList);
|
||||
RangeTblEntry *transformTableEntry(ParseState *pstate, RangeVar *r);
|
||||
static RangeTblEntry *transformTableEntry(ParseState *pstate, RangeVar *r);
|
||||
static List *addTargetToSortList(TargetEntry *tle, List *sortlist,
|
||||
List *targetlist, char *opname);
|
||||
static bool exprIsInSortList(Node *expr, List *sortList, List *targetList);
|
||||
@ -245,13 +245,11 @@ makeAttrList(Attr *attr)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#ifdef NOT_USED
|
||||
/* ExpandAttrs()
|
||||
* Take an existing attribute node and return a list of attribute nodes
|
||||
* with one attribute name per node.
|
||||
*/
|
||||
List *
|
||||
ExpandAttrs(Attr *attr);
|
||||
List *
|
||||
ExpandAttrs(Attr *attr)
|
||||
{
|
||||
@ -273,6 +271,7 @@ ExpandAttrs(Attr *attr)
|
||||
|
||||
return rlist;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* transformUsingClause()
|
||||
* Take an ON or USING clause from a join expression and expand if necessary.
|
||||
@ -335,7 +334,7 @@ transformUsingClause(ParseState *pstate, List *usingList,
|
||||
#endif
|
||||
|
||||
|
||||
RangeTblEntry *
|
||||
static RangeTblEntry *
|
||||
transformTableEntry(ParseState *pstate, RangeVar *r)
|
||||
{
|
||||
RelExpr *baserel = r->relExpr;
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.41 2000/06/03 04:41:32 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.42 2000/06/08 22:37:18 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -65,6 +65,7 @@ static char *attnum_type[SPECIALS] = {
|
||||
"cid",
|
||||
};
|
||||
|
||||
#ifdef NOT_USED
|
||||
/* refnameRangeTableEntries()
|
||||
* Given refname, return a list of range table entries
|
||||
* This is possible with JOIN syntax, where tables in a join
|
||||
@ -75,10 +76,8 @@ static char *attnum_type[SPECIALS] = {
|
||||
* to support outer joins in place yet.
|
||||
* - thomas 2000-03-04
|
||||
*/
|
||||
List *
|
||||
refnameRangeTableEntries(ParseState *pstate, char *refname);
|
||||
|
||||
List *
|
||||
static List *
|
||||
refnameRangeTableEntries(ParseState *pstate, char *refname)
|
||||
{
|
||||
List *rteList = NULL;
|
||||
@ -97,6 +96,7 @@ refnameRangeTableEntries(ParseState *pstate, char *refname)
|
||||
}
|
||||
return rteList;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* given refname, return a pointer to the range table entry */
|
||||
RangeTblEntry *
|
||||
@ -466,6 +466,7 @@ specialAttNum(char *a)
|
||||
}
|
||||
|
||||
|
||||
#ifdef NOT_USED
|
||||
/*
|
||||
* Given range variable, return whether attribute of this name
|
||||
* is a set.
|
||||
@ -491,7 +492,9 @@ attnameIsSet(Relation rd, char *name)
|
||||
}
|
||||
return get_attisset(RelationGetRelid(rd), name);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef NOT_USED
|
||||
/*
|
||||
* This should only be used if the relation is already
|
||||
* heap_open()'ed. Use the cache version
|
||||
@ -502,6 +505,7 @@ attnumAttNelems(Relation rd, int attid)
|
||||
{
|
||||
return rd->rd_att->attrs[attid - 1]->attnelems;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* given attribute id, return type of that attribute */
|
||||
/*
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_type.c,v 1.31 2000/06/06 16:50:37 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_type.c,v 1.32 2000/06/08 22:37:18 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -199,6 +199,7 @@ typeTypeRelid(Type typ)
|
||||
return typtup->typrelid;
|
||||
}
|
||||
|
||||
#ifdef NOT_USED
|
||||
Oid
|
||||
typeTypElem(Type typ)
|
||||
{
|
||||
@ -208,10 +209,11 @@ typeTypElem(Type typ)
|
||||
|
||||
return typtup->typelem;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef NOT_USED
|
||||
/* Given the attribute type of an array return the attribute type of
|
||||
an element of the array */
|
||||
|
||||
Oid
|
||||
GetArrayElementType(Oid typearray)
|
||||
{
|
||||
@ -237,7 +239,9 @@ GetArrayElementType(Oid typearray)
|
||||
|
||||
return type_struct_array->typelem;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef NOT_USED
|
||||
/* Given a type structure, return the in-conversion function of the type */
|
||||
Oid
|
||||
typeInfunc(Type typ)
|
||||
@ -248,7 +252,9 @@ typeInfunc(Type typ)
|
||||
|
||||
return typtup->typinput;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef NOT_USED
|
||||
/* Given a type structure, return the out-conversion function of the type */
|
||||
Oid
|
||||
typeOutfunc(Type typ)
|
||||
@ -259,3 +265,4 @@ typeOutfunc(Type typ)
|
||||
|
||||
return typtup->typoutput;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user