• Tom Lane's avatar
    Second thoughts on TOAST decompression. · fd299756
    Tom Lane authored
    On detecting a corrupted match tag, pglz_decompress() should just
    summarily return -1.  Breaking out of the loop, as I did in dfc79773,
    doesn't quite guarantee that will happen.  Also, we can use
    unlikely() on that check, just in case it helps.
    
    Backpatch to v13, like the previous patch.
    fd299756
pg_lzcompress.c 25.9 KB