↑↓ select ↵ open ⌫ change scope Open full search

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

Functions / System Information Functions And Operators

has_type_privilege

Read the PG 18 manual

Does user have privilege for data type? The only allowable privilege type is USAGE.

Reading PG 18current·documented in 16 of 27 versions, 9.2 to 20

Signatures & examples

has_type_privilege ( [ user name or oid, ] type text or oid, privilege text ) → boolean
Does user have privilege for data type? The only allowable privilege type is USAGE. When specifying a type by name rather than by OID, the allowed input is the same as for the regtype data type (see Section 8.19).
Version history 2
  1. 12 → 13 changed
  2. 9.1 → 9.2 added

Definition snapshot: b7bd9cda · English manual source