Split tuptoaster.c into three separate files.
authorRobert Haas <rhaas@postgresql.org>
Wed, 15 May 2019 17:33:16 +0000 (13:33 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 1 Aug 2019 18:26:02 +0000 (14:26 -0400)
commit86beffb7b70101563163c1412ace780f01161e22
tree010030bb280fdeafd23624eb3dc44b0359fb838d
parent580cf9d2066e5b4f8e5362c63bdc95e469d01c79
Split tuptoaster.c into three separate files.

detoast.c/h contain functions required to detoast a datum, partially
or completely, plus a few other utility functions for examining the
size of toasted datums.

toast_internals.c/h contain functions that are used internally to the
TOAST subsystem but which (mostly) do not need to be accessed from
outside.

heaptoast.c/h contains code that is intrinsically specific to the
heap AM, either because it operates on HeapTuples or is based on the
layout of a heap page.

detoast.c and toast_internals.c are placed in
src/backend/access/common rather than src/backend/access/heap.  At
present, both files still have dependencies on the heap, but that will
be improved in a future commit.
36 files changed:
doc/src/sgml/storage.sgml
src/backend/access/common/Makefile
src/backend/access/common/detoast.c [new file with mode: 0644]
src/backend/access/common/heaptuple.c
src/backend/access/common/indextuple.c
src/backend/access/common/reloptions.c
src/backend/access/common/toast_internals.c [new file with mode: 0644]
src/backend/access/heap/Makefile
src/backend/access/heap/heapam.c
src/backend/access/heap/heapam_handler.c
src/backend/access/heap/heaptoast.c [new file with mode: 0644]
src/backend/access/heap/rewriteheap.c
src/backend/access/transam/xlog.c
src/backend/commands/analyze.c
src/backend/commands/cluster.c
src/backend/executor/execExprInterp.c
src/backend/executor/execTuples.c
src/backend/executor/tstoreReceiver.c
src/backend/replication/logical/reorderbuffer.c
src/backend/statistics/extended_stats.c
src/backend/storage/large_object/inv_api.c
src/backend/utils/adt/array_typanalyze.c
src/backend/utils/adt/datum.c
src/backend/utils/adt/expandedrecord.c
src/backend/utils/adt/rowtypes.c
src/backend/utils/adt/tsgistidx.c
src/backend/utils/adt/varchar.c
src/backend/utils/adt/varlena.c
src/backend/utils/cache/catcache.c
src/backend/utils/fmgr/fmgr.c
src/bin/pg_resetwal/pg_resetwal.c
src/include/access/detoast.h [new file with mode: 0644]
src/include/access/heaptoast.h [moved from src/include/access/tuptoaster.h with 57% similarity]
src/include/access/toast_internals.h [new file with mode: 0644]
src/pl/plpgsql/src/pl_exec.c
src/test/regress/regress.c