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.
Showing
- src/backend/access/common/tupdesc.c 58 additions, 77 deletionssrc/backend/access/common/tupdesc.c
- src/backend/catalog/index.c 4 additions, 5 deletionssrc/backend/catalog/index.c
- src/backend/utils/cache/relcache.c 7 additions, 13 deletionssrc/backend/utils/cache/relcache.c
- src/include/access/tupdesc.h 12 additions, 8 deletionssrc/include/access/tupdesc.h
Loading
Please register or sign in to comment