forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9bc3332
committed
Improve error message annotation for GRANT/REVOKE on untrusted PLs.
The annotation for "ERROR: language "foo" is not trusted" used to say"HINT: Only superusers can use untrusted languages", which was fairlypoorly thought out. For one thing, it's not a hint about what to do,but a statement of fact, which makes it errdetail. But also, thisfails to clarify things much, because there's a missing step in thechain of reasoning. I think it's more useful to say "GRANT and REVOKEare not allowed on untrusted languages, because only superusers can useuntrusted languages".It's been like this for a long time, but given the lack of previouscomplaints, I don't think this is worth back-patching.Discussion: <1417.1466289901@sss.pgh.pa.us>1 parenta3f42e8 commit9bc3332
File tree
2 files changed
+3
-2
lines changed- src
- backend/catalog
- test/regress/expected
2 files changed
+3
-2
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2592 | 2592 |
| |
2593 | 2593 |
| |
2594 | 2594 |
| |
2595 |
| - | |
| 2595 | + | |
| 2596 | + | |
2596 | 2597 |
| |
2597 | 2598 |
| |
2598 | 2599 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
536 | 536 |
| |
537 | 537 |
| |
538 | 538 |
| |
539 |
| - | |
| 539 | + | |
540 | 540 |
| |
541 | 541 |
| |
542 | 542 |
| |
|
0 commit comments
Comments
(0)