OSDN Git Service

Avoid O(N^2) overhead in repeated nocachegetattr calls when columns of
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Mar 2005 04:41:13 +0000 (04:41 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Mar 2005 04:41:13 +0000 (04:41 +0000)
commita9b05bdc8330b378cd2df7910ca0beaa500223fa
tree18be88094b6d17df65925023582e84c34bf152db
parentd1022ce3a1a8b61798028a8fae46e7e458d77cff
Avoid O(N^2) overhead in repeated nocachegetattr calls when columns of
a tuple are being accessed via ExecEvalVar and the attcacheoff shortcut
isn't usable (due to nulls and/or varlena columns).  To do this, cache
Datums extracted from a tuple in the associated TupleTableSlot.
Also some code cleanup in and around the TupleTable handling.
Atsushi Ogawa with some kibitzing by Tom Lane.
src/backend/access/common/heaptuple.c
src/backend/access/heap/tuptoaster.c
src/backend/executor/execJunk.c
src/backend/executor/execQual.c
src/backend/executor/execTuples.c
src/include/access/heapam.h
src/include/executor/executor.h
src/include/executor/tuptable.h