↑↓ 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_table_privilege

Read the PG 18 manual

Does user have privilege for table? Allowable privilege types are SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER, and MAINTAIN.

Reading PG 18current·documented in 26 of 27 versions, 7.2 to 20

Signatures & examples

has_table_privilege ( [ user name or oid, ] table text or oid, privilege text ) → boolean
Does user have privilege for table? Allowable privilege types are SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER, and MAINTAIN.
Version history 5
  1. 16 → 17 changed
  2. 12 → 13 changed
  3. 7.4 → 8.0 changed
  4. 7.3 → 7.4 changed
  5. 7.1 → 7.2 added

Definition snapshot: b7bd9cda · English manual source