• Robert Haas's avatar
    Rename some toasting functions based on whether they are heap-specific. · 2e8b6bfa
    Robert Haas authored
    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
    8b94dab0 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
    2e8b6bfa
rewriteheap.c 40.8 KB