forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfc7a5e9
committed
Ensure relcache consistency around generated columns
In certain transient states, it's possible that a table has attributeswith attgenerated set but no default expressions in pg_attrdef yet.In that case, the old code path would not setrelation->rd_att->constr->has_generated_stored, unlessrelation->rd_att->constr was also populated for some other reason.There was probably no practical impact, but it's better to keep thisconsistent.Reported-by: Andres Freund <andres@anarazel.de>Discussion:https://www.postgresql.org/message-id/flat/20200115181105.ad6ab6dlgyww3lb6%40alap3.anarazel.de1 parent7d4395d commitfc7a5e9
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
669 | 669 |
| |
670 | 670 |
| |
671 | 671 |
| |
672 |
| - | |
673 |
| - | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
674 | 677 |
| |
675 | 678 |
| |
676 | 679 |
| |
|
0 commit comments
Comments
(0)