forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdb22b90
committed
Fix arrays comparison in CompareOpclassOptions()
The current code calls array_eq() and does not provide FmgrInfo. This commitprovides initialization of FmgrInfo and uses C collation as the safe optionfor text comparison because we don't know anything about the semantics ofopclass options.Backpatch to 13, where opclass options were introduced.Reported-by: Nicolas MausDiscussion:https://postgr.es/m/18692-72ea398df3ec6712%40postgresql.orgBackpatch-through: 131 parent73c9f91 commitdb22b90
File tree
3 files changed
+16
-2
lines changed- contrib/pg_trgm
- expected
- sql
- src/backend/commands
3 files changed
+16
-2
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2372 | 2372 |
| |
2373 | 2373 |
| |
2374 | 2374 |
| |
| 2375 | + | |
| 2376 | + | |
| 2377 | + | |
2375 | 2378 |
| |
2376 | 2379 |
| |
2377 | 2380 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 |
| |
56 | 60 |
| |
57 | 61 |
| |
|
Lines changed: 9 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| 32 | + | |
32 | 33 |
| |
33 | 34 |
| |
34 | 35 |
| |
| |||
362 | 363 |
| |
363 | 364 |
| |
364 | 365 |
| |
| 366 | + | |
365 | 367 |
| |
366 | 368 |
| |
367 | 369 |
| |
368 | 370 |
| |
| 371 | + | |
369 | 372 |
| |
370 | 373 |
| |
371 | 374 |
| |
| |||
381 | 384 |
| |
382 | 385 |
| |
383 | 386 |
| |
384 |
| - | |
385 |
| - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
386 | 393 |
| |
387 | 394 |
| |
388 | 395 |
| |
|
0 commit comments
Comments
(0)