diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-09-29 18:21:41 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-09-29 18:21:41 +0000 |
commit | 3a94e789f5c9537d804210be3cb26f7fb08e3b9e (patch) | |
tree | f1eac12405e3c0ded881d7dd7e59cec35b30c335 /src/include/rewrite/rewriteSupport.h | |
parent | 6f64c2e54a0b14154a335249f4dca91a39c61c50 (diff) | |
download | postgresql-3a94e789f5c9537d804210be3cb26f7fb08e3b9e.tar.gz |
Subselects in FROM clause, per ISO syntax: FROM (SELECT ...) [AS] alias.
(Don't forget that an alias is required.) Views reimplemented as expanding
to subselect-in-FROM. Grouping, aggregates, DISTINCT in views actually
work now (he says optimistically). No UNION support in subselects/views
yet, but I have some ideas about that. Rule-related permissions checking
moved out of rewriter and into executor.
INITDB REQUIRED!
Diffstat (limited to 'src/include/rewrite/rewriteSupport.h')
-rw-r--r-- | src/include/rewrite/rewriteSupport.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/rewrite/rewriteSupport.h b/src/include/rewrite/rewriteSupport.h index 589f4245f7..39605df47a 100644 --- a/src/include/rewrite/rewriteSupport.h +++ b/src/include/rewrite/rewriteSupport.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: rewriteSupport.h,v 1.12 2000/06/30 07:04:04 tgl Exp $ + * $Id: rewriteSupport.h,v 1.13 2000/09/29 18:21:24 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -16,6 +16,7 @@ extern int IsDefinedRewriteRule(char *ruleName); -extern void setRelhasrulesInRelation(Oid relationId, bool relhasrules); +extern void SetRelationRuleStatus(Oid relationId, bool relHasRules, + bool relIsBecomingView); #endif /* REWRITESUPPORT_H */ |