From fbd26d69846fcbfb69deee45bdddcc692dd59b07 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 7 Oct 2000 00:58:23 +0000 Subject: Arrange that no database accesses are attempted during parser() --- this took some rejiggering of typename and ACL parsing, as well as moving parse_analyze call out of parser(). Restructure postgres.c processing so that parse analysis and rewrite are skipped when in abort-transaction state. Only COMMIT and ABORT statements will be processed beyond the raw parser() phase. This addresses problem of parser failing with database access errors while in aborted state (see pghackers discussions around 7/28/00). Also fix some bugs with COMMIT/ABORT statements appearing in the middle of a single query input string. Function, operator, and aggregate arguments/results can now use full TypeName production, in particular foo[] for array types. DROP OPERATOR and COMMENT ON OPERATOR were broken for unary operators. Allow CREATE AGGREGATE to accept unquoted numeric constants for initcond. --- src/backend/parser/parse_clause.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/parser/parse_clause.c') diff --git a/src/backend/parser/parse_clause.c b/src/backend/parser/parse_clause.c index 20233ed1950..38dc3ea0976 100644 --- a/src/backend/parser/parse_clause.c +++ b/src/backend/parser/parse_clause.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.69 2000/10/05 19:11:33 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.70 2000/10/07 00:58:17 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -375,7 +375,7 @@ transformRangeSubselect(ParseState *pstate, RangeSubselect *r) save_joinlist = pstate->p_joinlist; pstate->p_rtable = NIL; pstate->p_joinlist = NIL; - parsetrees = parse_analyze(makeList1(r->subquery), pstate); + parsetrees = parse_analyze(r->subquery, pstate); pstate->p_rtable = save_rtable; pstate->p_joinlist = save_joinlist; -- cgit v1.2.3