summaryrefslogtreecommitdiff
path: root/src/include/optimizer/tlist.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-11-08 19:25:37 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-11-08 19:25:37 +0000
commit1be0601681197fe79a2d2d403c518e7aeff1788a (patch)
tree6d686123b9ca4e5dc70efa9dba364a558ddaa307 /src/include/optimizer/tlist.h
parentf1528b5154ed68ec37735e7125732a96aa1758e1 (diff)
Last week's patch for make_sort_from_pathkeys wasn't good enough: it has
to be able to discard top-level RelabelType nodes on *both* sides of the equivalence-class-to-target-list comparison, since make_pathkey_from_sortinfo might either add or remove a RelabelType. Also fix the latter to do the removal case cleanly. Per example from Peter.
Diffstat (limited to 'src/include/optimizer/tlist.h')
-rw-r--r--src/include/optimizer/tlist.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/optimizer/tlist.h b/src/include/optimizer/tlist.h
index 31156ebcbcc..bb127cbce2b 100644
--- a/src/include/optimizer/tlist.h
+++ b/src/include/optimizer/tlist.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/optimizer/tlist.h,v 1.45 2007/01/05 22:19:56 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/optimizer/tlist.h,v 1.46 2007/11/08 19:25:37 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -18,6 +18,7 @@
extern TargetEntry *tlist_member(Node *node, List *targetlist);
+extern TargetEntry *tlist_member_ignore_relabel(Node *node, List *targetlist);
extern List *flatten_tlist(List *tlist);
extern List *add_to_flat_tlist(List *tlist, List *vars);