On Thu, Oct 26, 2017 at 3:29 AM, David Rowley <david.row...@2ndquadrant.com> wrote: > However, method 2 appears to also require some Var > translation in Path targetlists which contain this Proxy path, either > that or some global Var replacement would need to be done during > setrefs. >
For inheritance and partitioning, we translate parent expressions to child expression by applying Var translations. The translated expressions differ only in the Var nodes (at least for partitioning this true, and I believe it to be true for inheritance). I have been toying with an idea of having some kind of a (polymorphic?) Var node which can represent parent and children. That will greatly reduce the need to translate the expression trees and will also help in this implementation. I am wondering, if ProxyPath could be helpful in avoiding the cost of reparameterize_path_by_child() introduced for partition-wise join. -- Best Wishes, Ashutosh Bapat EnterpriseDB Corporation The Postgres Database Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers