Re: Expression Pruning in postgress - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Expression Pruning in postgress
Date
Msg-id [email protected]
Whole thread Raw
In response to Expression Pruning in postgress  (HarmeekSingh Bedi <[email protected]>)
Responses Re: Expression Pruning in postgress
List pgsql-hackers
HarmeekSingh Bedi <[email protected]> writes:
>    In a plan where Node 1 is parent {say join) and Node 2 is child
> (say scan)  . If node 1 has a expression say foo(column) then scan
> will project 'column'  for sure and join will
>       evaluate foo(column).  Now if the node above join does not need
> column ? how does postgress remove the column from join's projection
> list .

See build_joinrel_tlist() in relnode.c.

> I am seeing that it does not in many
>       cases specially when sort appears above.

Please show a concrete example.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Crash dumps
Next
From: Craig Ringer
Date:
Subject: Re: Review of VS 2010 support patches