pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Rename some toasting functions based on whether they are heap-sp
Date: Fri, 04 Oct 2019 18:29:23 +0000
Message-ID: <E1iGSKR-0008L6-55@gemulon.postgresql.org> (raw)

Rename some toasting functions based on whether they are heap-specific.

The old names for the attribute-detoasting functions names included
the word "heap," which seems outdated now that the heap is only one of
potentially many table access methods.

On the other hand, toast_insert_or_update and toast_delete are
heap-specific, so rename them by adding "heap_" as a prefix.

Not all of the work of making the TOAST system fully accessible to AMs
other than the heap is done yet, but there seems to be little harm in
getting this renaming out of the way now. Commit
8b94dab06617ef80a0901ab103ebd8754427ef5a already divided up the
functions among various files partially according to whether it was
intended that they should be heap-specific or AM-agnostic, so this is
just clarifying the division contemplated by that 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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2e8b6bfa90b252b1e1758364de7deff067d6058a

Modified Files
--------------
src/backend/access/common/detoast.c        | 26 +++++++++++++-------------
src/backend/access/common/indextuple.c     |  2 +-
src/backend/access/heap/heapam.c           |  8 ++++----
src/backend/access/heap/heaptoast.c        | 23 ++++++++++++-----------
src/backend/access/heap/rewriteheap.c      |  4 ++--
src/backend/access/table/toast_helper.c    |  4 ++--
src/backend/executor/tstoreReceiver.c      |  2 +-
src/backend/storage/large_object/inv_api.c |  2 +-
src/backend/utils/adt/expandedrecord.c     |  4 ++--
src/backend/utils/fmgr/fmgr.c              |  8 ++++----
src/include/access/detoast.h               | 16 ++++++++--------
src/include/access/heaptoast.h             | 12 ++++++------
src/pl/plpgsql/src/pl_exec.c               |  2 +-
src/test/regress/regress.c                 |  2 +-
14 files changed, 58 insertions(+), 57 deletions(-)



Message-ID: <E1iGSKR-0008L6-55@gemulon.postgresql.org>
Permalink:  ../E1iGSKR-0008L6-55@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iGSKR-0008L6-55@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Rename some toasting functions based on whether they are heap-sp
  In-Reply-To: <E1iGSKR-0008L6-55@gemulon.postgresql.org>
  References: <E1iGSKR-0008L6-55@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox