forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9b28685
committed
Add more sanity checks with callers of changeDependencyFor()
changeDependencyFor() returns the number of pg_depend entries changed,or 0 if there is a problem. The callers of this routine expect only onedependency to change, but they did not check for the result returned.The following code paths gain checks:- Namespace for extensions.- Namespace for various object types (see AlterObjectNamespace).- Planner support function for a function.Some existing error messages related to all that are reworded to be moreconsistent with the project style, and the new error messages addedfollow the same style. This change has exposed one bug fixed a bitearlier withbd5ddbe.Reviewed-by: Heikki Linnakangas, Akshat JaiminiDiscussion:https://postgr.es/m/ZJzD/rn+UbloKjB7@paquier.xyz1 parentbd5ddbe commit9b28685
File tree
6 files changed
+21
-13
lines changed- src/backend/commands
6 files changed
+21
-13
lines changedLines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
847 | 847 |
| |
848 | 848 |
| |
849 | 849 |
| |
850 |
| - | |
851 |
| - | |
852 |
| - | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
853 | 855 |
| |
854 | 856 |
| |
855 | 857 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1271 | 1271 |
| |
1272 | 1272 |
| |
1273 | 1273 |
| |
1274 |
| - | |
| 1274 | + | |
1275 | 1275 |
| |
1276 | 1276 |
| |
1277 | 1277 |
| |
1278 | 1278 |
| |
1279 | 1279 |
| |
1280 | 1280 |
| |
1281 | 1281 |
| |
1282 |
| - | |
| 1282 | + | |
1283 | 1283 |
| |
1284 | 1284 |
| |
1285 | 1285 |
| |
|
Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2944 | 2944 |
| |
2945 | 2945 |
| |
2946 | 2946 |
| |
2947 |
| - | |
2948 |
| - | |
2949 |
| - | |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
2950 | 2952 |
| |
2951 | 2953 |
| |
2952 | 2954 |
| |
|
Lines changed: 7 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1450 | 1450 |
| |
1451 | 1451 |
| |
1452 | 1452 |
| |
1453 |
| - | |
1454 |
| - | |
1455 |
| - | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
1456 | 1460 |
| |
1457 | 1461 |
| |
1458 | 1462 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16608 | 16608 |
| |
16609 | 16609 |
| |
16610 | 16610 |
| |
16611 |
| - | |
| 16611 | + | |
16612 | 16612 |
| |
16613 | 16613 |
| |
16614 | 16614 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4059 | 4059 |
| |
4060 | 4060 |
| |
4061 | 4061 |
| |
4062 |
| - | |
| 4062 | + | |
4063 | 4063 |
| |
4064 | 4064 |
| |
4065 | 4065 |
| |
|
0 commit comments
Comments
(0)