forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0a9ae18
committed
Fix crash when using COLLATE in partition bound expressions
Attempting to use a COLLATE clause with a type that it not collatable ina partition bound expression could crash the server. This commit fixesthe code by adding more checks similar to what is done when computingindex or partition attributes by making sure that there is a collationiff the type is collatable.Backpatch down to 12, as7c079d7 introduced this problem.Reported-by: Alexander LakhinAuthor: Dmitry DolgovDiscussion:https://postgr.es/m/16325-809194cf742313ab@postgresql.orgBackpatch-through: 121 parent35d1eef commit0a9ae18
File tree
3 files changed
+32
-0
lines changed- src
- backend/parser
- test/regress
- expected
- sql
3 files changed
+32
-0
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4037 | 4037 |
| |
4038 | 4038 |
| |
4039 | 4039 |
| |
| 4040 | + | |
| 4041 | + | |
| 4042 | + | |
| 4043 | + | |
| 4044 | + | |
| 4045 | + | |
| 4046 | + | |
| 4047 | + | |
| 4048 | + | |
| 4049 | + | |
| 4050 | + | |
| 4051 | + | |
| 4052 | + | |
| 4053 | + | |
| 4054 | + | |
| 4055 | + | |
| 4056 | + | |
| 4057 | + | |
| 4058 | + | |
| 4059 | + | |
| 4060 | + | |
| 4061 | + | |
| 4062 | + | |
| 4063 | + | |
4040 | 4064 |
| |
4041 | 4065 |
| |
4042 | 4066 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
603 | 603 |
| |
604 | 604 |
| |
605 | 605 |
| |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
606 | 612 |
| |
607 | 613 |
| |
608 | 614 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
516 | 516 |
| |
517 | 517 |
| |
518 | 518 |
| |
| 519 | + | |
| 520 | + | |
519 | 521 |
| |
520 | 522 |
| |
521 | 523 |
| |
|
0 commit comments
Comments
(0)