pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Second thoughts on TOAST decompression. 2+ messages / 1 participants [nested] [flat]
* pgsql: Second thoughts on TOAST decompression. @ 2020-11-02 16:25 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2020-11-02 16:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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. Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/fd2997565c6f66837440dd57f5e52b56aa964d14 Modified Files -------------- src/common/pg_lzcompress.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Second thoughts on TOAST decompression. @ 2020-11-02 16:25 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2020-11-02 16:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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. Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/7957e75c588c0b17210d4379afb50ea2673b0d20 Modified Files -------------- src/common/pg_lzcompress.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-11-02 16:25 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-11-02 16:25 pgsql: Second thoughts on TOAST decompression. Tom Lane <tgl@sss.pgh.pa.us> 2020-11-02 16:25 pgsql: Second thoughts on TOAST decompression. Tom Lane <tgl@sss.pgh.pa.us>
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