forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit267ccc3
committed
Check syscache result in AlterStatistics
The syscache lookup may return NULL even for valid OID, for example dueto a concurrent DROP STATISTICS, so a HeapTupleIsValid is necessary.Without it, it may fail with a segfault.Reported by Alexander Lakhin, patch by me. Backpatch to 13, where ALTERSTATISTICS ... SET STATISTICS was introduced.Backpatch-through: 13Discussion:https://postgr.es/m/17372-bf3b6e947e35ae77%40postgresql.org1 parent31b7b4d commit267ccc3
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
493 | 493 |
| |
494 | 494 |
| |
495 | 495 |
| |
| 496 | + | |
| 497 | + | |
496 | 498 |
| |
497 | 499 |
| |
498 | 500 |
| |
|
0 commit comments
Comments
(0)