diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-10-31 01:41:31 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-10-31 01:41:31 +0000 |
| commit | fb5d05805b3f7658e47ad2c6a4631e497bb3f627 (patch) | |
| tree | 74ee6327b45c313ac0ac21e92a3d61a52135cd2f /src/include/parser/parse_relation.h | |
| parent | 8442317beb8fb6f180880a977c03ccae4304df25 (diff) | |
| download | postgresql-fb5d05805b3f7658e47ad2c6a4631e497bb3f627.tar.gz | |
Implement parser hooks for processing ColumnRef and ParamRef nodes, as per my
recent proposal. As proof of concept, remove knowledge of Params from the
core parser, arranging for them to be handled entirely by parser hook
functions. It turns out we need an additional hook for that --- I had
forgotten about the code that handles inferring a parameter's type from
context.
This is a preliminary step towards letting plpgsql handle its variables
through parser hooks. Additional work remains to be done to expose the
facility through SPI, but I think this is all the changes needed in the core
parser.
Diffstat (limited to 'src/include/parser/parse_relation.h')
| -rw-r--r-- | src/include/parser/parse_relation.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/include/parser/parse_relation.h b/src/include/parser/parse_relation.h index 96b60de480..006dfa75f0 100644 --- a/src/include/parser/parse_relation.h +++ b/src/include/parser/parse_relation.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/parser/parse_relation.h,v 1.66 2009/10/27 17:11:18 tgl Exp $ + * $PostgreSQL: pgsql/src/include/parser/parse_relation.h,v 1.67 2009/10/31 01:41:31 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -38,11 +38,6 @@ extern Node *scanRTEForColumn(ParseState *pstate, RangeTblEntry *rte, char *colname, int location); extern Node *colNameToVar(ParseState *pstate, char *colname, bool localonly, int location); -extern Node *qualifiedNameToVar(ParseState *pstate, - char *schemaname, - char *refname, - char *colname, - int location); extern void markVarForSelectPriv(ParseState *pstate, Var *var, RangeTblEntry *rte); extern Relation parserOpenTable(ParseState *pstate, const RangeVar *relation, |
