pg_default_acl — PostgreSQL system catalog

The PostgreSQL pg_default_acl system catalog: full column reference (names, types, descriptions), catalog relationships and version support.

Summary

The catalog pg_default_acl stores initial privileges to be assigned to newly created objects.

(Description quoted from the official PostgreSQL documentation.)

Columns

The pg_default_acl system catalog exposes the following columns (names, types and descriptions are taken verbatim from the PostgreSQL documentation):

  • oid oid
    Row identifier
  • defaclrole oid references pg_authid.oid
    The OID of the role associated with this entry
  • defaclnamespace oid references pg_namespace.oid
    The OID of the namespace associated with this entry, or zero if none
  • defaclobjtype char
    Type of object this entry is for: r = relation (table, view), S = sequence, f = function, T = type, n = schema, L = large object
  • defaclacl aclitem[]
    Access privileges that this type of object should have on creation

Related catalogs

This object references the following other system catalogs:

Version applicability

Present in PostgreSQL 17, 18, 19 (verified against each release’s documentation). This is a long-standing system object that also exists in earlier PostgreSQL releases.

Related & references

Reference: PostgreSQL documentation — pg_default_acl.