- Notifications
You must be signed in to change notification settings - Fork28
Commitcb03fa3
committed
Fix assorted syscache lookup sloppiness in partition-related code.
heap_drop_with_catalog and ATExecDetachPartition neglected to check forSearchSysCache failures, as noted in bugs #14927 and #14928 from Pan Bian.Such failures are pretty unlikely, since we should already have some sortof lock on the rel at these points, but it's neither a good idea norper project style to omit a check for failure.Also, StorePartitionKey contained a syscache lookup that it never didanything with, including never releasing the result. Presumably thereason why we don't see refcount-leak complaints is that the lookupalways fails; but in any case it's pretty useless, so remove it.All of these errors were evidently introduced by the relationpartitioning feature. Back-patch to v10 where that came in.Amit Langote and Tom LaneDiscussion:https://postgr.es/m/20171127090105.1463.3962@wrigleys.postgresql.orgDiscussion:https://postgr.es/m/20171127091341.1468.72696@wrigleys.postgresql.org1 parent9a785ad commitcb03fa3
2 files changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1772 | 1772 | | |
1773 | 1773 | | |
1774 | 1774 | | |
| 1775 | + | |
| 1776 | + | |
1775 | 1777 | | |
1776 | 1778 | | |
1777 | 1779 | | |
| |||
3131 | 3133 | | |
3132 | 3134 | | |
3133 | 3135 | | |
3134 | | - | |
3135 | | - | |
3136 | | - | |
3137 | 3136 | | |
3138 | 3137 | | |
3139 | 3138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14111 | 14111 | | |
14112 | 14112 | | |
14113 | 14113 | | |
| 14114 | + | |
| 14115 | + | |
| 14116 | + | |
14114 | 14117 | | |
14115 | 14118 | | |
14116 | 14119 | | |
| |||
0 commit comments
Comments
(0)