forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3cb02e3
committed
Fix possible crash with GENERATED ALWAYS columns
In some corner cases, this could also lead to corrupted values beingincluded in the tuple.Users who are concerned that they are affected by this should firstupgrade and then perform a base backup of their database and restore ontoan off-line server. They should then query each table with generatedcolumns to ensure there are no rows where the generated expression doesnot match a newly calculated version of the GENERATED ALWAYS expression.If no crashes occur and no rows are returned then you're not affected.Fixes bug #16369.Reported-by: Cameron EzellDiscussion:https://postgr.es/m/16369-5845a6f1bef59884@postgresql.orgBackpatch-through: 12 (where GENERATED ALWAYS columns were added.)1 parent737d69f commit3cb02e3
File tree
3 files changed
+26
-0
lines changed- src
- backend/executor
- test/regress
- expected
- sql
3 files changed
+26
-0
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
336 | 336 |
| |
337 | 337 |
| |
338 | 338 |
| |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
339 | 346 |
| |
340 | 347 |
| |
341 | 348 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
320 | 320 |
| |
321 | 321 |
| |
322 | 322 |
| |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
323 | 335 |
| |
324 | 336 |
| |
325 | 337 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
145 | 145 |
| |
146 | 146 |
| |
147 | 147 |
| |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
148 | 155 |
| |
149 | 156 |
| |
150 | 157 |
| |
|
0 commit comments
Comments
(0)