diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 1999-10-07 04:23:24 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 1999-10-07 04:23:24 +0000 |
commit | 3eb1c8227751aecede58e742a13b07127a7e2652 (patch) | |
tree | c2f606088b1536e385811667c7f032552b89afa6 /src/include/parser/parse_relation.h | |
parent | 4040fcfa78065882aa16895906ff8398aaaf1c23 (diff) |
Fix planner and rewriter to follow SQL semantics for tables that are
mentioned in FROM but not elsewhere in the query: such tables should be
joined over anyway. Aside from being more standards-compliant, this allows
removal of some very ugly hacks for COUNT(*) processing. Also, allow
HAVING clause without aggregate functions, since SQL does. Clean up
CREATE RULE statement-list syntax the same way Bruce just fixed the
main stmtmulti production.
CAUTION: addition of a field to RangeTblEntry nodes breaks stored rules;
you will have to initdb if you have any rules.
Diffstat (limited to 'src/include/parser/parse_relation.h')
-rw-r--r-- | src/include/parser/parse_relation.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/parser/parse_relation.h b/src/include/parser/parse_relation.h index 68e5ac7bf17..2f2305263aa 100644 --- a/src/include/parser/parse_relation.h +++ b/src/include/parser/parse_relation.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: parse_relation.h,v 1.12 1999/07/19 00:26:17 tgl Exp $ + * $Id: parse_relation.h,v 1.13 1999/10/07 04:23:22 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -23,7 +23,8 @@ extern RangeTblEntry *addRangeTableEntry(ParseState *pstate, char *relname, char *refname, bool inh, - bool inFromCl); + bool inFromCl, + bool inJoinSet); extern List *expandAll(ParseState *pstate, char *relname, char *refname, int *this_resno); extern int attnameAttNum(Relation rd, char *a); |