forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf7829fe
committed
Fix handling of NaN values in BRIN minmax multi
When calculating distance between float4/float8 values, we need to be abit more careful about NaN values in order not to trigger assert. Weconsider NaN values to be equal (distace 0.0) and in infinite distancefrom all other values.On builds without asserts, this issue is mostly harmless - the rangesmay be merged in less efficient order, but the index is still correct.Per report from Andreas Seltenreich. Backpatch to 14, where this newBRIN opclass was introduced.Reported-by: Andreas SeltenreichDiscussion:https://postgr.es/m/87r1bw9ukm.fsf@credativ.de1 parent3938722 commitf7829fe
File tree
3 files changed
+24
-0
lines changed- src
- backend/access/brin
- test/regress
- expected
- sql
3 files changed
+24
-0
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
| 76 | + | |
76 | 77 |
| |
77 | 78 |
| |
78 | 79 |
| |
| |||
1872 | 1873 |
| |
1873 | 1874 |
| |
1874 | 1875 |
| |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
1875 | 1884 |
| |
1876 | 1885 |
| |
1877 | 1886 |
| |
| |||
1890 | 1899 |
| |
1891 | 1900 |
| |
1892 | 1901 |
| |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
1893 | 1910 |
| |
1894 | 1911 |
| |
1895 | 1912 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
347 | 347 |
| |
348 | 348 |
| |
349 | 349 |
| |
| 350 | + | |
| 351 | + | |
| 352 | + | |
350 | 353 |
| |
351 | 354 |
| |
352 | 355 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
351 | 351 |
| |
352 | 352 |
| |
353 | 353 |
| |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
354 | 358 |
| |
355 | 359 |
| |
356 | 360 |
| |
|
0 commit comments
Comments
(0)