pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <rhodiumtoad@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Don't add bailout adjustment for non-strict deserialize calls.
Date: Thu, 28 Jan 2021 11:35:53 +0000
Message-ID: <E1l55ab-0004nw-LN@gemulon.postgresql.org> (raw)

Don't add bailout adjustment for non-strict deserialize calls.

When building aggregate expression steps, strict checks need a bailout
jump for when a null value is encountered, so there is a list of steps
that require later adjustment. Adding entries to that list for steps
that aren't actually strict would be harmless, except that there is an
Assert which catches them. This leads to spurious errors on asserts
builds, for data sets that trigger parallel aggregation of an
aggregate with a non-strict deserialization function (no such
aggregates exist in the core system).

Repair by not adding the adjustment entry when it's not needed.

Backpatch back to 11 where the code was introduced.

Per a report from Darafei (Komzpa) of the PostGIS project; analysis
and patch by me.

Discussion: https://postgr.es/m/87mty7peb3.fsf@news-spur.riddles.org.uk

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a3367aa3c4552170004c92369681730d85e384c6

Modified Files
--------------
src/backend/executor/execExpr.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1l55ab-0004nw-LN@gemulon.postgresql.org>
Permalink:  ../E1l55ab-0004nw-LN@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1l55ab-0004nw-LN@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: rhodiumtoad@postgresql.org
  Subject: Re: pgsql: Don't add bailout adjustment for non-strict deserialize calls.
  In-Reply-To: <E1l55ab-0004nw-LN@gemulon.postgresql.org>
  References: <E1l55ab-0004nw-LN@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