diff options
| author | Tom Lane | 2000-10-07 00:58:23 +0000 |
|---|---|---|
| committer | Tom Lane | 2000-10-07 00:58:23 +0000 |
| commit | fbd26d69846fcbfb69deee45bdddcc692dd59b07 (patch) | |
| tree | 2aee8f89268d64645b1c4c96958a0e575a12e259 /src/include/tcop | |
| parent | 4837270be9cbba925a7003de5980918c3de8fb37 (diff) | |
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.
Diffstat (limited to 'src/include/tcop')
| -rw-r--r-- | src/include/tcop/tcopprot.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/tcop/tcopprot.h b/src/include/tcop/tcopprot.h index 562efca25cc..062a5818407 100644 --- a/src/include/tcop/tcopprot.h +++ b/src/include/tcop/tcopprot.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: tcopprot.h,v 1.34 2000/09/06 14:15:28 petere Exp $ + * $Id: tcopprot.h,v 1.35 2000/10/07 00:58:23 tgl Exp $ * * OLD COMMENTS * This file was created so that other c files could get the two @@ -35,9 +35,9 @@ extern bool ShowPortNumber; extern List *pg_parse_and_rewrite(char *query_string, Oid *typev, int nargs); extern Plan *pg_plan_query(Query *querytree); -extern void pg_exec_query_dest(char *query_string, - CommandDest dest, - MemoryContext parse_context); +extern void pg_exec_query_string(char *query_string, + CommandDest dest, + MemoryContext parse_context); #endif /* BOOTSTRAP_INCLUDE */ |
