forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit278cb43
committed
Be more consistent about errors for opfamily member lookup failures.
Add error checks in some places that were calling get_opfamily_memberor get_opfamily_proc and just assuming that the call could never fail.Also, standardize the wording for such errors in some other places.None of these errors are expected in normal use, hence they're justelog not ereport. But they may be handy for diagnosing omissions incustom opclasses.Rushabh Lathia found the oversight in RelationBuildPartitionKey();I found the others by grepping for all callers of these functions.Discussion:https://postgr.es/m/CAGPqQf2R9Nk8htpv0FFi+FP776EwMyGuORpc9zYkZKC8sFQE3g@mail.gmail.com1 parentbbbd912 commit278cb43
File tree
9 files changed
+27
-12
lines changed- src/backend
- catalog
- executor
- optimizer
- path
- plan
- utils/cache
9 files changed
+27
-12
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1738 | 1738 |
| |
1739 | 1739 |
| |
1740 | 1740 |
| |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
1741 | 1745 |
| |
1742 | 1746 |
| |
1743 | 1747 |
| |
|
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1187 | 1187 |
| |
1188 | 1188 |
| |
1189 | 1189 |
| |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
1190 | 1194 |
| |
1191 | 1195 |
| |
1192 | 1196 |
| |
1193 | 1197 |
| |
1194 | 1198 |
| |
1195 |
| - | |
1196 |
| - | |
1197 |
| - | |
1198 | 1199 |
| |
1199 | 1200 |
| |
1200 | 1201 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1640 | 1640 |
| |
1641 | 1641 |
| |
1642 | 1642 |
| |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
1643 | 1646 |
| |
1644 | 1647 |
| |
1645 | 1648 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
81 | 81 |
| |
82 | 82 |
| |
83 | 83 |
| |
84 |
| - | |
85 | 84 |
| |
86 |
| - | |
| 85 | + | |
87 | 86 |
| |
88 | 87 |
| |
89 | 88 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1367 | 1367 |
| |
1368 | 1368 |
| |
1369 | 1369 |
| |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
1370 | 1373 |
| |
1371 | 1374 |
| |
1372 | 1375 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3978 | 3978 |
| |
3979 | 3979 |
| |
3980 | 3980 |
| |
3981 |
| - | |
| 3981 | + | |
3982 | 3982 |
| |
3983 | 3983 |
| |
3984 | 3984 |
| |
3985 | 3985 |
| |
3986 | 3986 |
| |
3987 |
| - | |
| 3987 | + | |
3988 | 3988 |
| |
3989 | 3989 |
| |
3990 | 3990 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
197 | 197 |
| |
198 | 198 |
| |
199 | 199 |
| |
200 |
| - | |
201 |
| - | |
| 200 | + | |
| 201 | + | |
202 | 202 |
| |
203 | 203 |
| |
204 | 204 |
| |
|
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2634 | 2634 |
| |
2635 | 2635 |
| |
2636 | 2636 |
| |
2637 |
| - | |
| 2637 | + | |
| 2638 | + | |
2638 | 2639 |
| |
2639 | 2640 |
| |
2640 | 2641 |
| |
| |||
5738 | 5739 |
| |
5739 | 5740 |
| |
5740 | 5741 |
| |
5741 |
| - | |
| 5742 | + | |
5742 | 5743 |
| |
5743 | 5744 |
| |
5744 | 5745 |
| |
| |||
6216 | 6217 |
| |
6217 | 6218 |
| |
6218 | 6219 |
| |
6219 |
| - | |
| 6220 | + | |
6220 | 6221 |
| |
6221 | 6222 |
| |
6222 | 6223 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
945 | 945 |
| |
946 | 946 |
| |
947 | 947 |
| |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
948 | 952 |
| |
949 | 953 |
| |
950 | 954 |
| |
|
0 commit comments
Comments
(0)