-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcatalog-pg-init-privs.html
More file actions
52 lines (52 loc) · 8.56 KB
/
Copy pathcatalog-pg-init-privs.html
File metadata and controls
52 lines (52 loc) · 8.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>51.28. pg_init_privs</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets V1.79.1" /><link rel="prev" href="catalog-pg-inherits.html" title="51.27. pg_inherits" /><link rel="next" href="catalog-pg-language.html" title="51.29. pg_language" /><meta name="viewport" content="width=device-width,initial-scale=1.0" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="4" align="center"><a accesskey="h" href="index.html">PostgreSQL 10.5文書</a></th></tr><tr><td width="10%" align="left"></td><td width="10%" align="left"></td><td width="60%" align="center"><a href="catalogs.html" title="第51章 システムカタログ">第51章 システムカタログ</a></td><td width="20%" align="right"><div class="actions"><a class="issue" title="github" href="https://github.com/pgsql-jp/jpug-doc/issues/new?title=version 10.5 catalog-pg-init-privs.html">誤訳等の報告
</a></div></td></tr><tr><td width="10%" align="left"><a accesskey="p" href="catalog-pg-inherits.html" title="51.27. pg_inherits">前へ</a> </td><td width="10%" align="left"><a accesskey="u" href="catalogs.html" title="第51章 システムカタログ">上へ</a></td><td width="60%" align="center">51.28. <code class="structname">pg_init_privs</code></td><td width="20%" align="right"> <a accesskey="n" href="catalog-pg-language.html" title="51.29. pg_language">次へ</a></td></tr></table><hr /></div><div class="sect1" id="CATALOG-PG-INIT-PRIVS"><div class="titlepage"><div><div><h2 class="title" style="clear: both">51.28. <code class="structname">pg_init_privs</code></h2></div></div></div><a id="id-1.10.4.30.2" class="indexterm"></a><p><span class="original">
The catalog <structname>pg_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.
</span><code class="structname">pg_init_privs</code>カタログは、システム内のオブジェクトの初期権限についての情報を記録します。
データベース内の初期権限のセットがデフォルトでない(NULLでない)オブジェクトごとに1つの記述があります。
</p><p><span class="original">
Objects can have initial privileges either by having those privileges set
when the system is initialized (by <application>initdb</>) or when the
object is created during a <command>CREATE EXTENSION</command> and the
extension script sets initial privileges using the <command>GRANT</command>
system. Note that the system will automatically handle recording of the
privileges during the extension script and that extension authors need
only use the <command>GRANT</command> and <command>REVOKE</command>
statements in their script to have the privileges recorded. The
<literal>privtype</literal> column indicates if the initial privilege was
set by <application>initdb</> or during a
<command>CREATE EXTENSION</command> command.
</span>オブジェクトは、システムが(<span class="application">initdb</span>によって)初期化された時、またはオブジェクトが<code class="command">CREATE EXTENSION</code>の実行中に作成され、拡張スクリプトが<code class="command">GRANT</code>コマンドを使用して初期権限をシステムにセットする時に初期権限を持つことができます。
システムは、拡張スクリプトの実行中に権限の記録を自動的に処理することや、拡張作成者が権限を記録させるためにスクリプトの中で<code class="command">GRANT</code>と<code class="command">REVOKE</code>ステートメントの使用のみを必要とすることに注意してください。
<code class="literal">privtype</code>列は、初期権限が<span class="application">initdb</span>によって設定されたか、もしくは<code class="command">CREATE EXTENSION</code>コマンド実行中に設定されたかを表示します。
</p><p><span class="original">
Objects which have initial privileges set by <application>initdb</> will
have entries where <literal>privtype</literal> is
<literal>'i'</literal>, while objects which have initial privileges set
by <command>CREATE EXTENSION</command> will have entries where
<literal>privtype</literal> is <literal>'e'</literal>.
</span><span class="application">initdb</span>によって設定された初期権限を持つオブジェクトは、<code class="literal">privtype</code>が<code class="literal">'i'</code>で、<code class="command">CREATE EXTENSION</code>によって設定された初期権限を持つオブジェクトは、<code class="literal">privtype</code>が<code class="literal">'e'</code>になります。
</p><div class="table" id="id-1.10.4.30.6"><p class="title"><strong>表51.28 <code class="structname">pg_init_privs</code>の列</strong></p><div class="table-contents"><span class="original">
<title><structname>pg_init_privs</> Columns</title>
</span><table class="table" summary="pg_init_privsの列" border="1"><colgroup><col /><col /><col /><col /></colgroup><thead><tr><th>名前</th><th>型</th><th>参照先</th><th>説明</th></tr></thead><tbody><tr><td><code class="structfield">objoid</code></td><td><code class="type">oid</code></td><td>いずれかのOID列</td><td>オブジェクトを特定するOID</td></tr><tr><td><code class="structfield">classoid</code></td><td><code class="type">oid</code></td><td><code class="literal"><a class="link" href="catalog-pg-class.html" title="51.11. pg_class"><code class="structname">pg_class</code></a>.oid</code></td><td>オブジェクトが存在するシステムカタログのOID</td></tr><tr><td><code class="structfield">objsubid</code></td><td><code class="type">int4</code></td><td> </td><td><span class="original">
For a table column, this is the column number (the
<structfield>objoid</> and <structfield>classoid</> refer to the
table itself). For all other object types, this column is
zero.
</span>テーブル列においては、列番号です(<code class="structfield">objoid</code>と<code class="structfield">classoid</code>はテーブル自身を参照します)。
その他すべてのオブジェクト型においては、この列はゼロです。
</td></tr><tr><td><code class="structfield">privtype</code></td><td><code class="type">char</code></td><td> </td><td><span class="original">
A code defining the type of initial privilege of this object; see text
</span>オブジェクトの初期権限の型を設定しているコード。
テキストを参照してください。
</td></tr><tr><td><code class="structfield">initprivs</code></td><td><code class="type">aclitem[]</code></td><td> </td><td><span class="original">
The initial access privileges; see
<xref linkend="sql-grant"> and
<xref linkend="sql-revoke">
for details
</span>初期アクセス権限。
詳細は<a class="xref" href="sql-grant.html" title="GRANT"><span class="refentrytitle">GRANT</span></a>と<a class="xref" href="sql-revoke.html" title="REVOKE"><span class="refentrytitle">REVOKE</span></a>を参照してください。
</td></tr></tbody></table></div></div><br class="table-break" /></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="catalog-pg-inherits.html">前へ</a> </td><td width="20%" align="center"><a accesskey="u" href="catalogs.html">上へ</a></td><td width="40%" align="right"> <a accesskey="n" href="catalog-pg-language.html">次へ</a></td></tr><tr><td width="40%" align="left" valign="top">51.27. <code class="structname">pg_inherits</code> </td><td width="20%" align="center"><a accesskey="h" href="index.html">ホーム</a></td><td width="40%" align="right" valign="top"> 51.29. <code class="structname">pg_language</code></td></tr></table></div></body></html>