Re: Don't codegen deform code for virtual tuples in expr eval for scan fetch
Soumyadeep Chakraborty <soumyadeep2007@gmail.com>
From: Soumyadeep Chakraborty <soumyadeep2007@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2019-09-26T05:11:51Z
Lists: pgsql-hackers
Attachments
- v1-0001-Skip-deform-expr-step-emission-for-virtual-tuples.patch (application/octet-stream) patch v1-0001
Hello Andres, Thank you very much for reviewing my patch! On Wed, Sep 25, 2019 at 1:02 PM Andres Freund <andres@anarazel.de> wrote: > IOW, wherever ExecComputeSlotInfo() is called, we should only actually > push the expression step, when ExecComputeSlotInfo does not determine > that a) the slot is virtual, b) and fixed (i.e. guaranteed to always be > the same type of slot). > > Does that make sense? That is a great suggestion and I totally agree. I have attached a patch that achieves this. -- Soumyadeep
Commits
-
Don't generate EEOP_*_FETCHSOME operations for slots know to be virtual.
- 36d22dd95bc8 13.0 landed
-
Reduce code duplication for ExecJust*Var operations.
- 34c9c53bb035 13.0 landed