4 The catalog pg_init_privs records information about the initial
5 privileges of objects in the system. There is one entry for each object
6 in the database which has a non-default (non-NULL) initial set of
9 Objects can have initial privileges either by having those privileges
10 set when the system is initialized (by initdb) or when the object is
11 created during a CREATE EXTENSION and the extension script sets initial
12 privileges using the GRANT system. Note that the system will
13 automatically handle recording of the privileges during the extension
14 script and that extension authors need only use the GRANT and REVOKE
15 statements in their script to have the privileges recorded. The
16 privtype column indicates if the initial privilege was set by initdb or
17 during a CREATE EXTENSION command.
19 Objects which have initial privileges set by initdb will have entries
20 where privtype is 'i', while objects which have initial privileges set
21 by CREATE EXTENSION will have entries where privtype is 'e'.
23 Table 52.28. pg_init_privs Columns
29 objoid oid (references any OID column)
31 The OID of the specific object
33 classoid oid (references pg_class.oid)
35 The OID of the system catalog the object is in
39 For a table column, this is the column number (the objoid and classoid
40 refer to the table itself). For all other object types, this column is
45 A code defining the type of initial privilege of this object; see text
49 The initial access privileges; see Section 5.8 for details