1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-27 00:12:01 +03:00

Adjust subquery qual pushdown rules so that we can push down a qual

into a UNION that has some type coercions applied to the component
queries, so long as the qual itself does not reference any columns that
have such coercions.  Per example from Jonathan Bartlett 24-Apr-03.
This commit is contained in:
Tom Lane
2003-04-24 23:43:09 +00:00
parent 555fe9dda8
commit 5f677af2da
3 changed files with 89 additions and 34 deletions

View File

@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: prep.h,v 1.38 2003/03/05 20:01:04 tgl Exp $
* $Id: prep.h,v 1.39 2003/04/24 23:43:09 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -59,6 +59,4 @@ extern Node *adjust_inherited_attrs(Node *node,
Index old_rt_index, Oid old_relid,
Index new_rt_index, Oid new_relid);
extern bool tlist_same_datatypes(List *tlist, List *colTypes, bool junkOK);
#endif /* PREP_H */