"Mark Kirkwood" <markir@xxxxxxxxxxxxxxx> writes: > Luke Lonergan wrote: >> Sure - it's here: >> http://momjian.us/mhonarc/patches_hold/msg00381.html > > To clarify - we've fixed this in Greenplum db - the patch as submitted is > (hopefully) a hint about how to fix it in Postgres, rather than a working > patch... as its full of non-postgres functions and macros: Oh, that was the problem with the original patch and I thought Luke had said that was the problem which was fixed. > cdbpathlocus_pull_above_projection In particular this is the function I was hoping to see. Anyways as Tom pointed out previously there's precedent in Postgres as well for subqueries so I'm sure I'll be able to do it. (But I'm still not entirely convinced putting the append member vars into the eclasses would be wrong btw...) -- Gregory Stark EnterpriseDB http://www.enterprisedb.com Ask me about EnterpriseDB's On-Demand Production Tuning ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster