DROP DATABASE can be done by superuser

Started by PG Bug reporting formabout 16 hours ago2 messagesdocs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/18/sql-dropdatabase.html
Description:

The DROP DATABASE article would be a bit clearer and more accurate if after
"It can only be executed by the database owner," it said "or a superuser".

It does say that in 22.5, "Destroying a Database".

#2David G. Johnston
david.g.johnston@gmail.com
In reply to: PG Bug reporting form (#1)
Re: DROP DATABASE can be done by superuser

On Wednesday, September 16, 2026, PG Doc comments form <
noreply@postgresql.org> wrote:

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/18/sql-dropdatabase.html
Description:

The DROP DATABASE article would be a bit clearer and more accurate if after
"It can only be executed by the database owner," it said "or a superuser".

It does say that in 22.5, "Destroying a Database".

Personally I prefer saving the few characters since everything can be done
by a superuser. In any case, we are already inconsistent in whether we
make that point throughout the SQL Command chapter and I don’t see much
value in only changing this specific one in isolation.

David J.