diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-11-02 11:25:18 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-11-02 11:25:18 -0500 |
commit | fd2997565c6f66837440dd57f5e52b56aa964d14 (patch) | |
tree | aa417a059a8475acc981725fcea150d328b27d3f /src/backend/utils/adt/ruleutils.c | |
parent | dd26a0ad760b11237d7ea9cda8ccccc1826c2c64 (diff) | |
download | postgresql-fd2997565c6f66837440dd57f5e52b56aa964d14.tar.gz postgresql-fd2997565c6f66837440dd57f5e52b56aa964d14.zip |
Second thoughts on TOAST decompression.
On detecting a corrupted match tag, pglz_decompress() should just
summarily return -1. Breaking out of the loop, as I did in dfc797730,
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.
Diffstat (limited to 'src/backend/utils/adt/ruleutils.c')
0 files changed, 0 insertions, 0 deletions