]> granicus.if.org Git - postgresql/commit
Split tuptoaster.c into three separate files.
authorRobert Haas <rhaas@postgresql.org>
Mon, 8 Jul 2019 15:58:05 +0000 (11:58 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 5 Sep 2019 17:15:10 +0000 (13:15 -0400)
commit8b94dab06617ef80a0901ab103ebd8754427ef5a
tree84e6f0d7c435ac5d43322e2b28555c6bdea5a336
parent74a308cf5221f491776fcdb4dc36eb61678dbc6f
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.

Patch by me, reviewed and tested by Prabhat Sabu, Thomas Munro,
Andres Freund, and Álvaro Herrera.

Discussion: http://postgr.es/m/CA+TgmoZv-=2iWM4jcw5ZhJeL18HF96+W1yJeYrnGMYdkFFnEpQ@mail.gmail.com
37 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/heap/tuptoaster.c [deleted file]
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