diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-06-04 20:35:21 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-06-04 20:35:21 +0000 |
commit | 8f2ea8b7b53a02078ba0393e6892ac5356a3631e (patch) | |
tree | 536f02e4a6eec0304d76688d65cffbcea9679c9b /src/backend/utils/adt/arrayfuncs.c | |
parent | af44cac6ef46e225ae963c5e1f9e2e91a0112e04 (diff) | |
download | postgresql-8f2ea8b7b53a02078ba0393e6892ac5356a3631e.tar.gz postgresql-8f2ea8b7b53a02078ba0393e6892ac5356a3631e.zip |
Resurrect heap_deformtuple(), this time implemented as a singly nested
loop over the fields instead of a loop around heap_getattr. This is
considerably faster (O(N) instead of O(N^2)) when there are nulls or
varlena fields, since those prevent use of attcacheoff. Replace loops
over heap_getattr with heap_deformtuple in situations where all or most
of the fields have to be fetched, such as printtup and tuptoaster.
Profiling done more than a year ago shows that this should be a nice
win for situations involving many-column tables.
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions