Create an API for inserting and deleting rows in TOAST tables.
authorRobert Haas <rhaas@postgresql.org>
Tue, 14 May 2019 21:11:28 +0000 (17:11 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 1 Aug 2019 18:26:02 +0000 (14:26 -0400)
commit5a02a66db2ba0f7cfe5ffe83874c8a02912efe50
tree54a0c360b39cc79841da862e5cc00c2ebee9b285
parent86beffb7b70101563163c1412ace780f01161e22
Create an API for inserting and deleting rows in TOAST tables.

This moves much of the non-heap-specific logic from toast_delete and
toast_insert_or_update into a helper functions accessible via a new
header, toast_helper.h.  Using the functions in this module, a table
AM can implement creation and deletion of TOAST table rows with
much less code duplication than was possible heretofore.  Some
table AMs won't want to use the TOAST logic at all, but for those
that do this will make that easier.
src/backend/access/heap/heaptoast.c
src/backend/access/table/Makefile
src/backend/access/table/toast_helper.c [new file with mode: 0644]
src/include/access/toast_helper.h [new file with mode: 0644]