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/backend/optimizer/util/indexnode.c | |
parent | 6f64c2e54a0b14154a335249f4dca91a39c61c50 (diff) |
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/backend/optimizer/util/indexnode.c')
-rw-r--r-- | src/backend/optimizer/util/indexnode.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/backend/optimizer/util/indexnode.c b/src/backend/optimizer/util/indexnode.c deleted file mode 100644 index e8d97aae7cf..00000000000 --- a/src/backend/optimizer/util/indexnode.c +++ /dev/null @@ -1,34 +0,0 @@ -/*------------------------------------------------------------------------- - * - * indexnode.c - * Routines to find all indices on a relation - * - * Portions Copyright (c) 1996-2000, PostgreSQL, Inc - * Portions Copyright (c) 1994, Regents of the University of California - * - * - * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/util/Attic/indexnode.c,v 1.22 2000/01/26 05:56:40 momjian Exp $ - * - *------------------------------------------------------------------------- - */ -#include "postgres.h" - -#include "optimizer/pathnode.h" -#include "optimizer/plancat.h" - - -/* - * find_relation_indices - * Returns a list of index nodes containing appropriate information for - * each (secondary) index defined on a relation. - * - */ -List * -find_relation_indices(Query *root, RelOptInfo *rel) -{ - if (rel->indexed) - return find_secondary_indexes(root, lfirsti(rel->relids)); - else - return NIL; -} |