From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix assertion failure in check_new_partition_bound().
Date: Fri, 30 Oct 2020 21:01:06 +0000
Message-ID: <E1kYbWE-0003QQ-AI@gemulon.postgresql.org> (raw)
Fix assertion failure in check_new_partition_bound().
Commit 6b2c4e59d was overly confident about not being able to see
a negative cmpval result from partition_range_bsearch(). Adjust
the code to cope with that.
Report and patch by Amul Sul; some additional cosmetic changes by me
Discussion: https://postgr.es/m/CAAJ_b97WCO=EyVA7fKzc86kKfojHXLU04_zs7-7+yVzm=-1QkQ@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/970c05057593c2f5919a69b43fd917c4fa86f51c
Modified Files
--------------
src/backend/partitioning/partbounds.c | 40 +++++++++++++++---------------
src/test/regress/expected/create_table.out | 4 +++
src/test/regress/sql/create_table.sql | 1 +
3 files changed, 25 insertions(+), 20 deletions(-)
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: Fix assertion failure in check_new_partition_bound().
In-Reply-To: <E1kYbWE-0003QQ-AI@gemulon.postgresql.org>
References: <E1kYbWE-0003QQ-AI@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