parse_relation.h
上传用户:blenddy
上传日期:2007-01-07
资源大小:6495k
文件大小:1k
- /*-------------------------------------------------------------------------
- *
- * parse_query.h
- * prototypes for parse_query.c.
- *
- *
- * Copyright (c) 1994, Regents of the University of California
- *
- * $Id: parse_relation.h,v 1.9 1999/02/13 23:21:57 momjian Exp $
- *
- *-------------------------------------------------------------------------
- */
- #ifndef PARSE_QUERY_H
- #define PARSE_RANGE_H
- #include <nodes/nodes.h>
- #include <nodes/parsenodes.h>
- #include <nodes/pg_list.h>
- #include <nodes/primnodes.h>
- #include <parser/parse_node.h>
- #include <utils/rel.h>
- extern RangeTblEntry *refnameRangeTableEntry(ParseState *pstate, char *refname);
- extern int refnameRangeTablePosn(ParseState *pstate,
- char *refname, int *sublevels_up);
- extern RangeTblEntry *colnameRangeTableEntry(ParseState *pstate, char *colname);
- extern RangeTblEntry *addRangeTableEntry(ParseState *pstate,
- char *relname,
- char *refname,
- bool inh,
- bool inFromCl);
- extern List *expandAll(ParseState *pstate, char *relname, char *refname,
- int *this_resno);
- extern int attnameAttNum(Relation rd, char *a);
- extern bool attnameIsSet(Relation rd, char *name);
- extern int attnumAttNelems(Relation rd, int attid);
- extern Oid attnumTypeId(Relation rd, int attid);
- extern void handleTargetColname(ParseState *pstate, char **resname,
- char *refname, char *colname);
- #endif /* PARSE_RANGE_H */