]> begriffs open source - ai-pg/blob - full-docs/txt/catalog-pg-init-privs.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / catalog-pg-init-privs.txt
1
2 52.28. pg_init_privs #
3
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
7    privileges.
8
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.
18
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'.
22
23    Table 52.28. pg_init_privs Columns
24
25    Column Type
26
27    Description
28
29    objoid oid (references any OID column)
30
31    The OID of the specific object
32
33    classoid oid (references pg_class.oid)
34
35    The OID of the system catalog the object is in
36
37    objsubid int4
38
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
41    zero.
42
43    privtype char
44
45    A code defining the type of initial privilege of this object; see text
46
47    initprivs aclitem[]
48
49    The initial access privileges; see Section 5.8 for details