From 2fb6cc904555024ef668f5ba096b5bf0ddd3ec26 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 5 Jan 2001 06:34:23 +0000 Subject: Remove not-really-standard implementation of CREATE TABLE's UNDER clause, and revert documentation to describe the existing INHERITS clause instead, per recent discussion in pghackers. Also fix implementation of SQL_inheritance SET variable: it is not cool to look at this var during the initial parsing phase, only during parse_analyze(). See recent bug report concerning misinterpretation of date constants just after a SET TIMEZONE command. gram.y really has to be an invariant transformation of the query string to a raw parsetree; anything that can vary with time must be done during parse analysis. --- src/include/parser/parse_clause.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include/parser') diff --git a/src/include/parser/parse_clause.h b/src/include/parser/parse_clause.h index 421156ac210..f6cb59581f0 100644 --- a/src/include/parser/parse_clause.h +++ b/src/include/parser/parse_clause.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parse_clause.h,v 1.20 2000/11/08 22:10:02 tgl Exp $ + * $Id: parse_clause.h,v 1.21 2001/01/05 06:34:21 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -20,6 +20,7 @@ extern void makeRangeTable(ParseState *pstate, List *frmList); extern void lockTargetTable(ParseState *pstate, char *relname); extern void setTargetTable(ParseState *pstate, char *relname, bool inh, bool inJoinSet); +extern bool interpretInhOption(InhOption inhOpt); extern Node *transformWhereClause(ParseState *pstate, Node *where); extern List *transformGroupClause(ParseState *pstate, List *grouplist, List *targetlist); -- cgit v1.2.3