↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

SQL Commands / Roles & Privileges

remove a database role

Reading PG 18current·documented in 30 of 30 versions, 6.4 to 20

Syntax

DROP USER [ IF EXISTS ] name [, ...]
Syntax diagrams

Read left to right. Branches are choices, bypasses are optional, loops repeat. Select an underlined parameter to open its rule.

DROP USER IF EXISTS name ,

Description

DROP USER is simply an alternate spelling of DROP ROLE.

Compatibility

The DROP USER statement is a PostgreSQL extension. The SQL standard leaves the definition of users to the implementation.

See Also

DROP ROLE
Version history 10
  1. 9.0 → 9.1 changed
  2. 8.1 → 8.2 changed
  3. 8.0 → 8.1 changed
  4. 7.4 → 8.0 changed
  5. 7.3 → 7.4 changed
  6. 7.2 → 7.3 changed
  7. 7.1 → 7.2 changed
  8. 7.0 → 7.1 changed
  9. 6.5 → 7.0 changed
  10. 6.4 → 6.5 changed

Related entries

Definition snapshot: b7bd9cda · English manual source