Re: [HACKERS] Quals not pushed down into lateral

2017-04-18 Thread David Fetter
On Thu, Apr 13, 2017 at 01:39:07PM -0700, Andres Freund wrote: > On 2017-04-13 16:34:12 -0400, Robert Haas wrote: > > On Thu, Mar 16, 2017 at 4:45 AM, Andres Freund wrote: > > > During citus development we noticed that restrictions aren't pushed down > > > into lateral

Re: [HACKERS] Quals not pushed down into lateral

2017-04-13 Thread Andres Freund
On 2017-04-13 16:34:12 -0400, Robert Haas wrote: > On Thu, Mar 16, 2017 at 4:45 AM, Andres Freund wrote: > > During citus development we noticed that restrictions aren't pushed down > > into lateral subqueries, even if they semantically could. For example, > > in this dumbed

Re: [HACKERS] Quals not pushed down into lateral

2017-04-13 Thread Robert Haas
On Thu, Mar 16, 2017 at 4:45 AM, Andres Freund wrote: > During citus development we noticed that restrictions aren't pushed down > into lateral subqueries, even if they semantically could. For example, > in this dumbed down example: > > postgres[31776][1]=# CREATE TABLE