Allow sibling call optimization in slot_getsomeattrs_int()
David Rowley <drowley@postgresql.org>
Allow sibling call optimization in slot_getsomeattrs_int() This changes the TupleTableSlotOps contract to make it so the getsomeattrs() function is in charge of calling slot_getmissingattrs(). Since this removes all code from slot_getsomeattrs_int() aside from the getsomeattrs() call itself, we may as well adjust slot_getsomeattrs() so that it calls getsomeattrs() directly. We leave slot_getsomeattrs_int() intact as this is still called from the JIT code. Author: David Rowley <dgrowleyml@gmail.com> Reviewed-by: Andres Freund <andres@anarazel.de> Reviewed-by: Zsolt Parragi <zsolt.parragi@percona.com> Discussion: https://postgr.es/m/CAApHDvodSVBj3ypOYbYUCJX%2BNWL%3DVZs63RNBQ_FxB_F%2B6QXF-A%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/execTuples.c | modified | +30 −28 |
| src/include/executor/tuptable.h | modified | +8 −5 |
Discussion
- More speedups for tuple deformation 60 messages · 2025-12-28 → 2026-04-02