forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfdf2dbd
committed
Fix assorted corner-case bugs in contrib/intarray.
The array containment operators now behave per mathematical expectationfor empty arrays (ie, an empty array is contained in anything).Both these operators and the query_int operators now work as expected inGiST and GIN index searches, rather than having corner cases where theindex searches gave different answers.Also, fix unexpected failures where the operators would claim that an arraycontained nulls, when in fact there was no longer any null present (similarto bug #5784). The restriction to not have nulls is still there, asremoving it would take a lot of added code complexity and probably slowthings down significantly.Also, remove the arbitrary restriction to 1-D arrays; unlike the otherrestriction, this was buying us nothing performance-wise.Assorted cosmetic improvements and marginal performance improvements, too.1 parentadf328c commitfdf2dbd
File tree
9 files changed
+332
-460
lines changed- contrib/intarray
- doc/src/sgml
9 files changed
+332
-460
lines changedLines changed: 43 additions & 37 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 | 12 |
| |
16 | 13 |
| |
17 | 14 |
| |
18 | 15 |
| |
19 |
| - | |
| 16 | + | |
20 | 17 |
| |
21 | 18 |
| |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
32 | 23 |
| |
33 | 24 |
| |
34 |
| - | |
| 25 | + | |
35 | 26 |
| |
| 27 | + | |
36 | 28 |
| |
37 | 29 |
| |
38 |
| - | |
39 |
| - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
40 | 33 |
| |
41 | 34 |
| |
| 35 | + | |
42 | 36 |
| |
43 | 37 |
| |
44 |
| - | |
45 |
| - | |
46 |
| - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
47 | 42 |
| |
48 | 43 |
| |
49 | 44 |
| |
| |||
90 | 85 |
| |
91 | 86 |
| |
92 | 87 |
| |
93 |
| - | |
94 |
| - | |
| 88 | + | |
| 89 | + | |
95 | 90 |
| |
96 | 91 |
| |
97 | 92 |
| |
98 | 93 |
| |
99 |
| - | |
100 |
| - | |
| 94 | + | |
| 95 | + | |
101 | 96 |
| |
102 | 97 |
| |
103 | 98 |
| |
| |||
133 | 128 |
| |
134 | 129 |
| |
135 | 130 |
| |
136 |
| - | |
| 131 | + | |
137 | 132 |
| |
138 | 133 |
| |
139 |
| - | |
140 |
| - | |
| 134 | + | |
| 135 | + | |
141 | 136 |
| |
142 | 137 |
| |
143 |
| - | |
144 |
| - | |
145 |
| - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
146 | 141 |
| |
| 142 | + | |
147 | 143 |
| |
148 | 144 |
| |
149 | 145 |
| |
150 | 146 |
| |
151 | 147 |
| |
152 | 148 |
| |
153 | 149 |
| |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
154 | 156 |
| |
155 | 157 |
| |
156 |
| - | |
157 |
| - | |
158 | 158 |
| |
159 |
| - | |
| 159 | + | |
| 160 | + | |
160 | 161 |
| |
| 162 | + | |
161 | 163 |
| |
162 | 164 |
| |
163 |
| - | |
164 |
| - | |
165 |
| - | |
166 |
| - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
167 | 173 |
| |
168 | 174 |
|
0 commit comments
Comments
(0)