forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1755440
committed
Flush relcache entries when their FKs are meddled with
Back in commit100340e, we made relcache entries keep lists of theforeign keys applying to the relation -- but we forgot to updateCacheInvalidateHeapTuple to flush those entries when new FKs got createdor existing ones updated/deleted. No bugs appear to have been reportedthat would be explained by this ommission, but I noticed the problemwhile working on an unrelated bugfix which clearly showed it. Fix byadding relcache flush on relevant foreign key changes.Backpatch to 9.6, like the aforementioned commit.Discussion:https://postgr.es/m/201901211927.7mmhschxlejh@alvherre.pgsqlReviewed-by: Tom Lane1 parentee27584 commit1755440
1 file changed
+19
-0
lines changedLines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
| 57 | + | |
57 | 58 |
| |
58 | 59 |
| |
59 | 60 |
| |
| |||
100 | 101 |
| |
101 | 102 |
| |
102 | 103 |
| |
| 104 | + | |
103 | 105 |
| |
104 | 106 |
| |
105 | 107 |
| |
| |||
1203 | 1205 |
| |
1204 | 1206 |
| |
1205 | 1207 |
| |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
1206 | 1225 |
| |
1207 | 1226 |
| |
1208 | 1227 |
| |
|
0 commit comments
Comments
(0)