diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-02-16 00:03:08 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-02-16 00:03:08 +0000 |
commit | b29f68f611e26377306a9ba2210a589b472c8544 (patch) | |
tree | 00a057a7682b2a727a9445b753af10dde172a3d4 /src/include/optimizer/pathnode.h | |
parent | ca71c6619086ac3b6e3787c2826363faeab02ac9 (diff) | |
download | postgresql-b29f68f611e26377306a9ba2210a589b472c8544.tar.gz postgresql-b29f68f611e26377306a9ba2210a589b472c8544.zip |
Take OUTER JOIN semantics into account when estimating the size of join
relations. It's not very bright, but at least it now knows that
A LEFT JOIN B must produce at least as many rows as are in A ...
Diffstat (limited to 'src/include/optimizer/pathnode.h')
-rw-r--r-- | src/include/optimizer/pathnode.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/include/optimizer/pathnode.h b/src/include/optimizer/pathnode.h index b4e239aa8f7..7e000034761 100644 --- a/src/include/optimizer/pathnode.h +++ b/src/include/optimizer/pathnode.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: pathnode.h,v 1.33 2001/01/24 19:43:26 momjian Exp $ + * $Id: pathnode.h,v 1.34 2001/02/16 00:03:06 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -66,8 +66,10 @@ extern HashPath *create_hashjoin_path(RelOptInfo *joinrel, */ extern RelOptInfo *get_base_rel(Query *root, int relid); extern RelOptInfo *make_base_rel(Query *root, int relid); -extern RelOptInfo *get_join_rel(Query *root, RelOptInfo *outer_rel, - RelOptInfo *inner_rel, - List **restrictlist_ptr); +extern RelOptInfo *get_join_rel(Query *root, + RelOptInfo *outer_rel, + RelOptInfo *inner_rel, + JoinType jointype, + List **restrictlist_ptr); #endif /* PATHNODE_H */ |