pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Second thoughts on TOAST decompression.
Date: Mon, 02 Nov 2020 16:25:33 +0000
Message-ID: <E1kZceD-0004OK-MK@gemulon.postgresql.org> (raw)

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(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1kZceD-0004OK-MK@gemulon.postgresql.org>
Permalink:  ../E1kZceD-0004OK-MK@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kZceD-0004OK-MK@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Second thoughts on TOAST decompression.
  In-Reply-To: <E1kZceD-0004OK-MK@gemulon.postgresql.org>
  References: <E1kZceD-0004OK-MK@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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