pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix yet more problems with incorrectly-constructed zero-length a 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix yet more problems with incorrectly-constructed zero-length a @ 2018-07-09 18:28 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2018-07-09 18:28 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix yet more problems with incorrectly-constructed zero-length arrays. Commit 716ea626a attempted to fix the problem of building 1-D zero-size arrays once and for all. But it turns out that contrib/intarray has some code that doesn't use construct_array() but just builds arrays by hand, so it didn't get the memo. This appears to affect all of subarray(), intset_subtract(), inner_int_union(), inner_int_inter(), and intarray_concat_arrays(). Back-patch into v11. In the past we've not back-patched this type of change, but since v11 is still in beta it seems all right to include this fix in it. Besides it's more consistent to make the fix in v11 where 716ea626a appeared. Report and patch by Alexey Kryuchkov, some cosmetic adjustments by me Report: https://postgr.es/m/153053285112.13258.434620894305716755@wrigleys.postgresql.org Discussion: https://postgr.es/m/CAN85JcYphDLYt4CpMDLZjjNVqGDrFJ5eS3YF=wLAhFoDQuBsyg@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/01783ac36de1aac9bf8d19f6c2814778188d4523 Modified Files -------------- contrib/intarray/_int_tool.c | 17 ++++++++++++++--- contrib/intarray/expected/_int.out | 24 ++++++++++++++++++++++++ contrib/intarray/sql/_int.sql | 4 ++++ 3 files changed, 42 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix yet more problems with incorrectly-constructed zero-length a @ 2018-07-09 18:28 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2018-07-09 18:28 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix yet more problems with incorrectly-constructed zero-length arrays. Commit 716ea626a attempted to fix the problem of building 1-D zero-size arrays once and for all. But it turns out that contrib/intarray has some code that doesn't use construct_array() but just builds arrays by hand, so it didn't get the memo. This appears to affect all of subarray(), intset_subtract(), inner_int_union(), inner_int_inter(), and intarray_concat_arrays(). Back-patch into v11. In the past we've not back-patched this type of change, but since v11 is still in beta it seems all right to include this fix in it. Besides it's more consistent to make the fix in v11 where 716ea626a appeared. Report and patch by Alexey Kryuchkov, some cosmetic adjustments by me Report: https://postgr.es/m/153053285112.13258.434620894305716755@wrigleys.postgresql.org Discussion: https://postgr.es/m/CAN85JcYphDLYt4CpMDLZjjNVqGDrFJ5eS3YF=wLAhFoDQuBsyg@mail.gmail.com Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/95cce84c16ca9d1477ef9e2d35bb688173142461 Modified Files -------------- contrib/intarray/_int_tool.c | 17 ++++++++++++++--- contrib/intarray/expected/_int.out | 24 ++++++++++++++++++++++++ contrib/intarray/sql/_int.sql | 4 ++++ 3 files changed, 42 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-07-09 18:28 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-07-09 18:28 pgsql: Fix yet more problems with incorrectly-constructed zero-length a Tom Lane <tgl@sss.pgh.pa.us> 2018-07-09 18:28 pgsql: Fix yet more problems with incorrectly-constructed zero-length a 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