Re: [PERFORM] postgres_fdw and column casting shippability

2017-05-15 Thread Tom Lane
Jeff Janes writes: > I've tried versions 9.6.3 and 10dev, and neither do what I expected. It > doesn't seem to be a planning problem where it thinks the fast plan is > slower, it just doesn't seem to consider the faster plans as being options > at all. Is there some setting to make it realize th

[PERFORM] postgres_fdw and column casting shippability

2017-05-15 Thread Jeff Janes
I need to do a join between two foreign tables using columns of different types. select data from remote2 join remote1 on ((remote2.id)::bigint=remote1.id) where cutoff > 0.; For demonstration purposes, I use a loop-back foreign server, set up in the attached sql file. If I do the join direc