Fix function/procedure DROP privilege documentation#23366
Open
rafiss wants to merge 1 commit into
Open
Conversation
The DROP FUNCTION and DROP PROCEDURE pages incorrectly stated that a user must have the `DROP` privilege on the function/procedure. There is no such privilege for routines — `GRANT DROP ON FUNCTION ...` errors with `invalid privilege type DROP for routine`. Verified against running v24.3.17 and v26.3-dev servers: dropping a function or procedure requires that the user be the owner of the routine. Neither `EXECUTE` nor any other granted privilege is sufficient. Applied to v24.3 through v26.2. Mirrors the trigger-privilege fix in #23314. Refs: - Slack: https://cockroachlabs.slack.com/archives/C04U1BTF8/p1778777578301199?thread_ts=1778687470.432449&cid=C04U1BTF8 Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>
✅ Deploy Preview for cockroachdb-interactivetutorials-docs canceled.
|
✅ Deploy Preview for cockroachdb-api-docs canceled.
|
✅ Netlify Preview
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The DROP FUNCTION and DROP PROCEDURE pages incorrectly stated that
a user must have the
DROPprivilege on the function/procedure.There is no such privilege for routines —
GRANT DROP ON FUNCTION ...errors with
invalid privilege type DROP for routine.Verified against running v24.3.17 and v26.3-dev servers: dropping a
function or procedure requires that the user be the owner of the
routine. Neither
EXECUTEnor any other granted privilege issufficient.
Applied to v24.3 through v26.2.
Mirrors the trigger-privilege fix in #23314.
Refs: