Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
51.28. pg_init_privs
Prev UpChapter 51. System CatalogsHome Next

51.28. pg_init_privs#

The catalogpg_init_privs records information about the initial privileges of objects in the system. There is one entry for each object in the database which has a non-default (non-NULL) initial set of privileges.

Objects can have initial privileges either by having those privileges set when the system is initialized (byinitdb) or when the object is created during aCREATE EXTENSION and the extension script sets initial privileges using theGRANT system. Note that the system will automatically handle recording of the privileges during the extension script and that extension authors need only use theGRANT andREVOKE statements in their script to have the privileges recorded. Theprivtype column indicates if the initial privilege was set byinitdb or during aCREATE EXTENSION command.

Objects which have initial privileges set byinitdb will have entries whereprivtype is'i', while objects which have initial privileges set byCREATE EXTENSION will have entries whereprivtype is'e'.

Table 51.28. pg_init_privs Columns

Column Type

Description

objoidoid (references any OID column)

The OID of the specific object

classoidoid (referencespg_class.oid)

The OID of the system catalog the object is in

objsubidint4

For a table column, this is the column number (theobjoid andclassoid refer to the table itself). For all other object types, this column is zero.

privtypechar

A code defining the type of initial privilege of this object; see text

initprivsaclitem[]

The initial access privileges; seeSection 5.8 for details



Prev Up Next
51.27. pg_inherits Home 51.29. pg_language
pdfepub
Go to Postgres Pro Standard 17
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp