Skip to content

Fix function/procedure DROP privilege documentation#23366

Open
rafiss wants to merge 1 commit into
mainfrom
fix-drop-function-procedure-privilege-docs
Open

Fix function/procedure DROP privilege documentation#23366
rafiss wants to merge 1 commit into
mainfrom
fix-drop-function-procedure-privilege-docs

Conversation

@rafiss
Copy link
Copy Markdown
Contributor

@rafiss rafiss commented May 15, 2026

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:

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>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 15, 2026

Deploy Preview for cockroachdb-interactivetutorials-docs canceled.

Name Link
🔨 Latest commit f0e9df1
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-interactivetutorials-docs/deploys/6a075227cda6830008532e07

@netlify
Copy link
Copy Markdown

netlify Bot commented May 15, 2026

Deploy Preview for cockroachdb-api-docs canceled.

Name Link
🔨 Latest commit f0e9df1
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-api-docs/deploys/6a075227ae28160008093ee2

@rafiss rafiss requested a review from rmloveland May 15, 2026 17:06
@netlify
Copy link
Copy Markdown

netlify Bot commented May 15, 2026

Netlify Preview

Name Link
🔨 Latest commit f0e9df1
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-docs/deploys/6a0752277fc4790008b0583e
😎 Deploy Preview https://deploy-preview-23366--cockroachdb-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant