forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1f55eba
committed
Make _bt_keep_natts_fast() use datum_image_eq().
An upcoming patch that adds deduplication to the nbtree AM will rely on_bt_keep_natts_fast() understanding that differences in TOAST inputstate can never affect its answer. In particular, two opclass-equaldatums (with opclasses deemed safe for deduplication) should never betreated as unequal by _bt_keep_natts_fast() due to TOAST inputdifferences.This also seems like a good idea on general principle. nbtsplitloc.cwill now occasionally make better decisions about where to split a leafpage. The behavior of _bt_keep_natts_fast() is now somewhat closer tothe behavior of _bt_keep_natts().Discussion:https://postgr.es/m/CAH2-Wzn3Ee49Gmxb7V1VJ3-AC8fWn-Fr8pfWQebHe8rYRxt5OQ@mail.gmail.com1 parentdcb7d3c commit1f55eba
1 file changed
+2
-4
lines changedLines changed: 2 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2303 | 2303 |
| |
2304 | 2304 |
| |
2305 | 2305 |
| |
2306 |
| - | |
2307 |
| - | |
2308 |
| - | |
| 2306 | + | |
2309 | 2307 |
| |
2310 | 2308 |
| |
2311 | 2309 |
| |
| |||
2337 | 2335 |
| |
2338 | 2336 |
| |
2339 | 2337 |
| |
2340 |
| - | |
| 2338 | + | |
2341 | 2339 |
| |
2342 | 2340 |
| |
2343 | 2341 |
| |
|
0 commit comments
Comments
(0)