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/nodes/execnodes.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/nodes/execnodes.h')
-rw-r--r-- | src/include/nodes/execnodes.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h index 83ed6c5234..65d35a2977 100644 --- a/src/include/nodes/execnodes.h +++ b/src/include/nodes/execnodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: execnodes.h,v 1.49 2000/09/12 21:07:10 tgl Exp $ + * $Id: execnodes.h,v 1.50 2000/09/29 18:21:38 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -453,6 +453,24 @@ typedef struct TidScanState HeapTupleData tss_htup; } TidScanState; +/* ---------------- + * SubqueryScanState information + * + * SubqueryScanState is used for scanning a sub-query in the range table. + * The sub-query will have its own EState, which we save here. + * ScanTupleSlot references the current output tuple of the sub-query. + * + * SubQueryDesc queryDesc for sub-query + * SubEState exec state for sub-query + * ---------------- + */ +typedef struct SubqueryScanState +{ + CommonScanState csstate; /* its first field is NodeTag */ + struct QueryDesc *sss_SubQueryDesc; + EState *sss_SubEState; +} SubqueryScanState; + /* ---------------------------------------------------------------- * Join State Information * ---------------------------------------------------------------- |