Commit ac22a95
committed
Move privilege check to the right place
Now that ATExecDropConstraint doesn't recurse anymore, so it's wrong to
test privileges "during recursion" there. Move the check to
dropconstraint_internal, which is the place where recursion occurs.
In passing, remove now-useless 'recursing' argument to
ATExecDropConstraint.
Discussion: https://postgr.es/m/202309051744.y4mndw5gwzhh@alvherre.pgsql1 parent 3af7217 commit ac22a95
File tree
3 files changed
+50
-10
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+50
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
545 | | - | |
546 | | - | |
| 545 | + | |
547 | 546 | | |
548 | 547 | | |
549 | 548 | | |
| |||
5236 | 5235 | | |
5237 | 5236 | | |
5238 | 5237 | | |
5239 | | - | |
| 5238 | + | |
5240 | 5239 | | |
5241 | 5240 | | |
5242 | 5241 | | |
| |||
12263 | 12262 | | |
12264 | 12263 | | |
12265 | 12264 | | |
12266 | | - | |
12267 | | - | |
| 12265 | + | |
12268 | 12266 | | |
12269 | 12267 | | |
12270 | 12268 | | |
| |||
12273 | 12271 | | |
12274 | 12272 | | |
12275 | 12273 | | |
12276 | | - | |
12277 | | - | |
12278 | | - | |
12279 | | - | |
12280 | 12274 | | |
12281 | 12275 | | |
12282 | 12276 | | |
| |||
12302 | 12296 | | |
12303 | 12297 | | |
12304 | 12298 | | |
12305 | | - | |
| 12299 | + | |
12306 | 12300 | | |
12307 | 12301 | | |
12308 | 12302 | | |
| |||
12353 | 12347 | | |
12354 | 12348 | | |
12355 | 12349 | | |
| 12350 | + | |
| 12351 | + | |
| 12352 | + | |
| 12353 | + | |
12356 | 12354 | | |
12357 | 12355 | | |
12358 | 12356 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2430 | 2430 | | |
2431 | 2431 | | |
2432 | 2432 | | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
| 2445 | + | |
| 2446 | + | |
| 2447 | + | |
| 2448 | + | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
2433 | 2454 | | |
2434 | 2455 | | |
2435 | 2456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
923 | 944 | | |
924 | 945 | | |
925 | 946 | | |
| |||
0 commit comments