pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: exclusion@gmail.com
Subject: BUG #17969: Assert failed in bloom_init() when false_positive_rate = 0.25
Date: Sun, 11 Jun 2023 15:00:01 +0000
Message-ID: <17969-a6c54de48026d694@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17969
Logged by:          Alexander Lakhin
Email address:      exclusion@gmail.com
PostgreSQL version: 16beta1
Operating system:   Ubuntu 22.04
Description:        

The following script:
CREATE TABLE tbl (i int);
CREATE INDEX idx ON tbl USING brin (i int4_bloom_ops(false_positive_rate =
0.25));
INSERT INTO tbl VALUES(1);

triggers an assertion failure:
TRAP: failed Assert("(false_positive_rate >= BLOOM_MIN_FALSE_POSITIVE_RATE)
&& (false_positive_rate < BLOOM_MAX_FALSE_POSITIVE_RATE)"), File:
"brin_bloom.c", Line: 282, PID: 1062784

Reproduced starting from 77b88cd1b.

With false_positive_rate = 0.2500000000000001 I get
ERROR:  value 0.2500000000000001 out of bounds for option
"false_positive_rate"
DETAIL:  Valid values are between "0.000100" and "0.250000".

Maybe that Assert is not needed at all...



view thread (8+ messages)  latest in thread

Message-ID: <17969-a6c54de48026d694@postgresql.org>
Permalink:  ../17969-a6c54de48026d694@postgresql.org/
Also on:    postgresql.org/message-id/17969-a6c54de48026d694@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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, exclusion@gmail.com
  Subject: Re: BUG #17969: Assert failed in bloom_init() when false_positive_rate = 0.25
  In-Reply-To: <17969-a6c54de48026d694@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