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

Returns the aclitem array as a set of rows.

Reading PG 18current·documented in 9 of 27 versions, 12 to 20

Signatures & examples

aclexplode ( aclitem[] ) → setof record ( grantor oid, grantee oid, privilege_type text, is_grantable boolean )
Returns the aclitem array as a set of rows. If the grantee is the pseudo-role PUBLIC, it is represented by zero in the grantee column. Each granted privilege is represented as SELECT, INSERT, etc (see Table 5.1 for a full list). Note that each privilege is broken out as a separate row, so only one keyword appears in the privilege_type column.
Version history 3
  1. 15 → 16 changed
  2. 12 → 13 changed
  3. 11 → 12 added

Definition snapshot: b7bd9cda · English manual source