forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4dccf95
committed
Enlarge assertion in bloom_init() for false_positive_rate
false_positive_rate is a parameter that can be set with the bloomopclass in BRIN, and setting it to a value of exactly 0.25 would triggeran assertion in the first INSERT done on the index with value set.The assertion changed here relied on BLOOM_{MIN|MAX}_FALSE_POSITIVE_RATEthat are somewhat arbitrary values, and specifying an out-of-range valuewould 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 LakhinReviewed-by: Tom Lane, Shihao ZhongDiscussion:https://postgr.es/m/17969-a6c54de48026d694@postgresql.orgBackpatch-through: 141 parent3edc658 commit4dccf95
1 file changed
+1
-2
lines changedLines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
279 | 279 |
| |
280 | 280 |
| |
281 | 281 |
| |
282 |
| - | |
283 |
| - | |
| 282 | + | |
284 | 283 |
| |
285 | 284 |
| |
286 | 285 |
| |
|
0 commit comments
Comments
(0)