forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit882b2cd
committed
Use valid compression method in brin_form_tuple
When compressing the BRIN summary, we can't simply use the compressionmethod from the indexed attribute. The summary may use a different datatype, e.g. fixed-length attribute may have varlena summary, leading tocompression failures. For the built-in BRIN opclasses this happens towork, because the summary uses the same data type as the attribute.When the data types match, we can inherit use the compression methodspecified for the attribute (it's copied into the index descriptor).Otherwise we don't have much choice and have to use the default one.Author: Tomas VondraReviewed-by: Justin Pryzby <pryzby@telsasoft.com>Discussion:https://postgr.es/m/e0367f27-392c-321a-7411-a58e1a7e4817%40enterprisedb.com1 parentaa25d10 commit882b2cd
1 file changed
+14
-2
lines changedLines changed: 14 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
213 | 213 |
| |
214 | 214 |
| |
215 | 215 |
| |
| 216 | + | |
| 217 | + | |
216 | 218 |
| |
217 | 219 |
| |
218 |
| - | |
219 |
| - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
220 | 232 |
| |
221 | 233 |
| |
222 | 234 |
| |
|
0 commit comments
Comments
(0)