pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Don't add bailout adjustment for non-strict deserialize calls. 4+ messages / 1 participants [nested] [flat]
* pgsql: Don't add bailout adjustment for non-strict deserialize calls. @ 2021-01-28 11:35 Andrew Gierth <rhodiumtoad@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Andrew Gierth @ 2021-01-28 11:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Don't add bailout adjustment for non-strict deserialize calls. @ 2021-01-28 11:35 Andrew Gierth <rhodiumtoad@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Andrew Gierth @ 2021-01-28 11:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/75e3cca42d6f1121934d982a9f9efd37226e875d Modified Files -------------- src/backend/executor/execExpr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Don't add bailout adjustment for non-strict deserialize calls. @ 2021-01-28 11:35 Andrew Gierth <rhodiumtoad@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Andrew Gierth @ 2021-01-28 11:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/30f912a41378bd0ce363276b2e6b9f590520af1d Modified Files -------------- src/backend/executor/execExpr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Don't add bailout adjustment for non-strict deserialize calls. @ 2021-01-28 11:35 Andrew Gierth <rhodiumtoad@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Andrew Gierth @ 2021-01-28 11:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/f7f2a28d4350daeeb60f72e97e463528da0f47a7 Modified Files -------------- src/backend/executor/execExpr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2021-01-28 11:35 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-01-28 11:35 pgsql: Don't add bailout adjustment for non-strict deserialize calls. Andrew Gierth <rhodiumtoad@postgresql.org> 2021-01-28 11:35 pgsql: Don't add bailout adjustment for non-strict deserialize calls. Andrew Gierth <rhodiumtoad@postgresql.org> 2021-01-28 11:35 pgsql: Don't add bailout adjustment for non-strict deserialize calls. Andrew Gierth <rhodiumtoad@postgresql.org> 2021-01-28 11:35 pgsql: Don't add bailout adjustment for non-strict deserialize calls. Andrew Gierth <rhodiumtoad@postgresql.org>
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