• Heikki Linnakangas's avatar
    In GIN recompression code, use mmemove rather than memcpy, for vacuum. · 398cf255
    Heikki Linnakangas authored
    When vacuuming a data leaf page, any compressed posting lists that are not
    modified, are copied back to the buffer from a later location in the same
    buffer rather than from  a palloc'd copy. IOW, they are just moved
    downwards in the same buffer. Because the source and destination addresses
    can overlap, we must use memmove rather than memcpy.
    
    Report and fix by Alexander Korotkov.
    398cf255
gindatapage.c 43.3 KB