- Notifications
You must be signed in to change notification settings - Fork5
Commit7577736
committed
Cope with smaller-than-normal BLCKSZ setting in SPGiST indexes on text.
The original coding failed miserably for BLCKSZ of 4K or less, as reportedby Josh Kupershmidt. With the present design for text indexes, a giveninner tuple could have up to 256 labels (requiring either 3K or 4K bytesdepending on MAXALIGN), which means that we can't positively guarantee nofailures for smaller blocksizes. But we can at least make it behave sanelyso long as there are few enough labels to fit on a page. Considering thatbtree is also more prone to "index tuple too large" failures when BLCKSZ issmall, it's not clear that we should expend more work than this on thiscase.1 parent0caa0d0 commit7577736
1 file changed
+9
-3
lines changedLines changed: 9 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
33 |
| - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
34 | 40 |
| |
35 |
| - | |
| 41 | + | |
36 | 42 |
| |
37 | 43 |
| |
38 | 44 |
| |
|
0 commit comments
Comments
(0)