From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: pgsql: Fix crash in BRIN inclusion op functions, due to missing datum c
Date: Wed, 22 Jan 2020 18:45:36 -0300
Message-ID: <20200122214536.GA3912@alvherre.pgsql> (raw)
In-Reply-To: <E1itSd4-00033M-9t@gemulon.postgresql.org>
On 2020-Jan-20, Heikki Linnakangas wrote:
> That case arises at least with the range_union() function, when one of
> the arguments is an 'empty' range:
>
> CREATE TABLE brintest (n numrange);
> CREATE INDEX brinidx ON brintest USING brin (n);
> INSERT INTO brintest VALUES ('empty');
> INSERT INTO brintest VALUES (numrange(0, 2^1000::numeric));
> INSERT INTO brintest VALUES ('(-1, 0)');
>
> SELECT brin_desummarize_range('brinidx', 0);
> SELECT brin_summarize_range('brinidx', 0);
I noticed that this test increases line-wise coverage of
brin_inclusion.c by a few percentage points, so I added it.
Again, thanks
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: alvherre@2ndquadrant.com, heikki.linnakangas@iki.fi, pgsql-hackers@lists.postgresql.org
Subject: Re: pgsql: Fix crash in BRIN inclusion op functions, due to missing datum c
In-Reply-To: <20200122214536.GA3912@alvherre.pgsql>
References: <E1itSd4-00033M-9t@gemulon.postgresql.org> <20200122214536.GA3912@alvherre.pgsql>
* 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