Adjust creation/destruction of TupleDesc data structure to reduce the
Tom Lane <tgl@sss.pgh.pa.us>
Adjust creation/destruction of TupleDesc data structure to reduce the number of palloc calls. This has a salutory impact on plpgsql operations with record variables (which create and destroy tupdescs constantly) and probably helps a bit in some other cases too.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/common/tupdesc.c | modified | +58 −77 |
| src/backend/catalog/index.c | modified | +4 −5 |
| src/backend/utils/cache/relcache.c | modified | +7 −13 |
| src/include/access/tupdesc.h | modified | +12 −8 |