diff options
author | Michael Paquier <michael@paquier.xyz> | 2023-11-08 14:06:39 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2023-11-08 14:06:39 +0900 |
commit | 7e18c0bd63aecb9fc4ee2e8aaf537d4952bd0197 (patch) | |
tree | 680f4bfb3b03a7ec7fe84ca4599b15e98e448e03 /src/backend/executor | |
parent | 1e7f81e90741795d547c0290b4a82d84d518faac (diff) | |
download | postgresql-7e18c0bd63aecb9fc4ee2e8aaf537d4952bd0197.tar.gz postgresql-7e18c0bd63aecb9fc4ee2e8aaf537d4952bd0197.zip |
Enlarge assertion in bloom_init() for false_positive_rate
false_positive_rate is a parameter that can be set with the bloom
opclass in BRIN, and setting it to a value of exactly 0.25 would trigger
an assertion in the first INSERT done on the index with value set.
The assertion changed here relied on BLOOM_{MIN|MAX}_FALSE_POSITIVE_RATE
that are somewhat arbitrary values, and specifying an out-of-range value
would also trigger a failure when defining such an index. So, as-is,
the assertion was just doubling on the min-max check of the reloption.
This is now enlarged to check that it is a correct percentage value,
instead, based on a suggestion by Tom Lane.
Author: Alexander Lakhin
Reviewed-by: Tom Lane, Shihao Zhong
Discussion: https://postgr.es/m/17969-a6c54de48026d694@postgresql.org
Backpatch-through: 14
Diffstat (limited to 'src/backend/executor')
0 files changed, 0 insertions, 0 deletions