-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcatalog-pg-database.html
More file actions
236 lines (236 loc) · 17.8 KB
/
catalog-pg-database.html
File metadata and controls
236 lines (236 loc) · 17.8 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<?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>52.15. pg_database</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /><link rel="prev" href="catalog-pg-conversion.html" title="52.14. pg_conversion" /><link rel="next" href="catalog-pg-db-role-setting.html" title="52.16. pg_db_role_setting" /><meta name="viewport" content="width=device-width,initial-scale=1.0" /></head><body id="docContent" class="container-fluid col-10"><div class="other_version"><a href="https://www.postgresql.jp/document/">バージョンごとのドキュメント一覧</a></div><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="4" align="center"><a accesskey="h" href="index.html">PostgreSQL 18.3文書</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="第52章 システムカタログ">第52章 システムカタログ</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?template=bug_report.yml&what-happened=version 18.3 : catalog-pg-database.html">誤訳等の報告
</a></div></td></tr><tr><td width="10%" align="left"><a accesskey="p" href="catalog-pg-conversion.html" title="52.14. pg_conversion">前へ</a> </td><td width="10%" align="left"><a accesskey="u" href="catalogs.html" title="第52章 システムカタログ">上へ</a></td><td width="60%" align="center">52.15. <code class="structname">pg_database</code></td><td width="20%" align="right"> <a accesskey="n" href="catalog-pg-db-role-setting.html" title="52.16. pg_db_role_setting">次へ</a></td></tr></table><hr /></div><div class="sect1" id="CATALOG-PG-DATABASE"><div class="titlepage"><div><div><h2 class="title" style="clear: both">52.15. <code class="structname">pg_database</code> <a href="#CATALOG-PG-DATABASE" class="id_link">#</a></h2></div></div></div><a id="id-1.10.4.17.2" class="indexterm"></a><p>
<span class="original">
The catalog <structname>pg_database</structname> stores information about
the available databases. Databases are created with the <link
linkend="sql-createdatabase"><command>CREATE DATABASE</command></link> command.
Consult <xref linkend="managing-databases"/> for details about the meaning
of some of the parameters.
</span>
<code class="structname">pg_database</code>カタログには使用可能なデータベースの情報が格納されます。
データベースは<a class="link" href="sql-createdatabase.html" title="CREATE DATABASE"><code class="command">CREATE DATABASE</code></a>コマンドで作成されます。
いくつかのパラメータの詳細については<a class="xref" href="managing-databases.html" title="第22章 データベース管理">第22章</a>を参照してください。
</p><p>
<span class="original">
Unlike most system catalogs, <structname>pg_database</structname>
is shared across all databases of a cluster: there is only one
copy of <structname>pg_database</structname> per cluster, not
one per database.
</span>
ほとんどのシステムカタログとは異なり、<code class="structname">pg_database</code>はクラスタにおける全てのデータベースにわたって共有されます。
データベース毎に1つではなく、クラスタ毎にたった1つだけ<code class="structname">pg_database</code>のコピーが存在します。
</p><div class="table" id="id-1.10.4.17.5"><p class="title"><strong>表52.15 <code class="structname">pg_database</code>の列</strong></p><div class="table-contents"><span class="original">
<title><structname>pg_database</structname> Columns</title>
</span><table class="table" summary="pg_databaseの列" border="1"><colgroup><col /></colgroup><thead><tr><th class="catalog_table_entry"><p class="column_definition">
<span class="original">
Column Type
</span>
列 型
</p>
<p>
<span class="original">
Description
</span>
説明
</p></th></tr></thead><tbody><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">oid</code> <code class="type">oid</code>
</p>
<p>
<span class="original">
Row identifier
</span>
行識別子
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">datname</code> <code class="type">name</code>
</p>
<p>
<span class="original">
Database name
</span>
データベース名
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">datdba</code> <code class="type">oid</code>
<span class="original">
(references <link linkend="catalog-pg-authid"><structname>pg_authid</structname></link>.<structfield>oid</structfield>)
</span>
(参照先 <a class="link" href="catalog-pg-authid.html" title="52.8. pg_authid"><code class="structname">pg_authid</code></a>.<code class="structfield">oid</code>)
</p>
<p>
<span class="original">
Owner of the database, usually the user who created it
</span>
データベースの所有者。通常はそのデータベースの作成者
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">encoding</code> <code class="type">int4</code>
</p>
<p>
<span class="original">
Character encoding for this database
(<link linkend="pg-encoding-to-char"><function>pg_encoding_to_char()</function></link> can translate
this number to the encoding name)
</span>
このデータベースの文字エンコード(<a class="link" href="functions-info.html#PG-ENCODING-TO-CHAR"><code class="function">pg_encoding_to_char()</code></a>で、この番号からエンコード方式名称に変換できます)
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">datlocprovider</code> <code class="type">char</code>
</p>
<p>
<span class="original">
Locale provider for this database: <literal>b</literal> = builtin,
<literal>c</literal> = libc, <literal>i</literal> = icu </para></entry>
</span>
このデータベースのロケールプロバイダ: <code class="literal">b</code> = builtin、 <code class="literal">c</code> = libc、 <code class="literal">i</code> = icu
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">datistemplate</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
If true, then this database can be cloned by
any user with <literal>CREATEDB</literal> privileges;
if false, then only superusers or the owner of
the database can clone it.
</span>
trueの場合、このデータベースはどのユーザでも<code class="literal">CREATEDB</code>権限を使って複製できます。
falseの場合、スーパーユーザまたはデータベースの所有者だけが複製できます。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">datallowconn</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
If false then no one can connect to this database. This is
used to protect the <literal>template0</literal> database from being altered.
</span>
falseの場合、このデータベースには誰も接続できません。
これは<code class="literal">template0</code>データベースが変更されることを防ぐために使用されます。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">dathasloginevt</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
Indicates that there are login event triggers defined for this database.
This flag is used to avoid extra lookups on the
<structname>pg_event_trigger</structname> table during each backend
startup. This flag is used internally by <productname>PostgreSQL</productname>
and should not be manually altered or read for monitoring purposes.
</span>
このデータベースに対してログインイベントトリガが定義されていることを示します。
このフラグは、各バックエンドトリガで<code class="structname">pg_event_trigger</code>テーブルに対する余分な検索を避けるために使用されます。
このフラグは<span class="productname">PostgreSQL</span>によって内部的に使用されますが、監視の目的のために手動で変更したり読み取ったりしないでください。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">datconnlimit</code> <code class="type">int4</code>
</p>
<p>
<span class="original">
Sets maximum number of concurrent connections that can be made
to this database. -1 means no limit, -2 indicates the database is
invalid.
</span>
このデータベースに対する同時のコネクションの最大数を設定します。
-1は無制限を意味し、-2はデータベースが無効であることを示します。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">datfrozenxid</code> <code class="type">xid</code>
</p>
<p>
<span class="original">
All transaction IDs before this one have been replaced with a permanent
(<quote>frozen</quote>) transaction ID in this database. This is used to
track whether the database needs to be vacuumed in order to prevent
transaction ID wraparound or to allow <literal>pg_xact</literal> to be shrunk.
It is the minimum of the per-table
<link linkend="catalog-pg-class"><structname>pg_class</structname></link>.<structfield>relfrozenxid</structfield> values.
</span>
このデータベースの中で、この値よりも前のトランザクションIDは、永続的な(<span class="quote">「<span class="quote">凍結された</span>」</span>)トランザクションIDを持つように変更されています。
これは、このデータベースに対して、トランザクションID周回を防ぎ、かつ、<code class="literal">pg_xact</code>を縮小させることを目的としたバキュームを行うかどうかを追跡するために使用されます。
これはテーブル毎の<a class="link" href="catalog-pg-class.html" title="52.11. pg_class"><code class="structname">pg_class</code></a>.<code class="structfield">relfrozenxid</code>値の最小値になります。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">datminmxid</code> <code class="type">xid</code>
</p>
<p>
<span class="original">
All multixact IDs before this one have been replaced with a
transaction ID in this database. This is used to
track whether the database needs to be vacuumed in order to prevent
multixact ID wraparound or to allow <literal>pg_multixact</literal> to be shrunk.
It is the minimum of the per-table
<link linkend="catalog-pg-class"><structname>pg_class</structname></link>.<structfield>relminmxid</structfield> values.
</span>
このデータベース内のトランザクションIDで置換される前のすべてのマルチトランザクションID。
これは、トランザクションIDの周回問題を防ぐ、または<code class="literal">pg_multixact</code>を縮小させるためにデータベースをバキュームする必要があるかどうかを追跡するために使用されます。
これはテーブル毎の<a class="link" href="catalog-pg-class.html" title="52.11. pg_class"><code class="structname">pg_class</code></a>.<code class="structfield">relminmxid</code>の最小値です。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">dattablespace</code> <code class="type">oid</code>
<span class="original">
(references <link linkend="catalog-pg-tablespace"><structname>pg_tablespace</structname></link>.<structfield>oid</structfield>)
</span>
(参照先 <a class="link" href="catalog-pg-tablespace.html" title="52.56. pg_tablespace"><code class="structname">pg_tablespace</code></a>.<code class="structfield">oid</code>)
</p>
<p>
<span class="original">
The default tablespace for the database.
Within this database, all tables for which
<link linkend="catalog-pg-class"><structname>pg_class</structname></link>.<structfield>reltablespace</structfield> is zero
will be stored in this tablespace; in particular, all the non-shared
system catalogs will be there.
</span>
データベース用のデフォルトテーブル空間。
このデータベース内で<a class="link" href="catalog-pg-class.html" title="52.11. pg_class"><code class="structname">pg_class</code></a>.<code class="structfield">reltablespace</code>がゼロであるすべてのテーブルは、このテーブル空間に格納されます。
特に、共有されていないすべてのシステムカタログはこのテーブル空間にあります。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">datcollate</code> <code class="type">text</code>
</p>
<p>
<span class="original">
LC_COLLATE for this database
</span>
このデータベースのLC_COLLATE
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">datctype</code> <code class="type">text</code>
</p>
<p>
<span class="original">
LC_CTYPE for this database
</span>
このデータベースのLC_CTYPE
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">datlocale</code> <code class="type">text</code>
</p>
<p>
<span class="original">
Collation provider locale name for this database. If the
provider is <literal>libc</literal>,
<structfield>datlocale</structfield> is <literal>NULL</literal>;
<structfield>datcollate</structfield> and
<structfield>datctype</structfield> are used instead.
</span>
このデータベースの照合順序プロバイダのロケール名。
プロバイダが<code class="literal">libc</code>の場合、<code class="structfield">datlocale</code>は<code class="literal">NULL</code>です。
代わりに<code class="structfield">datcollate</code>と<code class="structfield">datctype</code>が使用されます。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">daticurules</code> <code class="type">text</code>
</p>
<p>
<span class="original">
ICU collation rules for this database
</span>
このデータベースのICU照合規則
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">datcollversion</code> <code class="type">text</code>
</p>
<p>
<span class="original">
Provider-specific version of the collation. This is recorded when the
database is created and then checked when it is used, to detect
changes in the collation definition that could lead to data corruption.
</span>
この照合順序に対する提供者固有のバージョンです。
これはデータベースが作成された時に記録され、データの破壊につながりかねない照合順序定義の変更を検知するために使用時に検査されます。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">datacl</code> <code class="type">aclitem[]</code>
</p>
<p>
<span class="original">
Access privileges; see <xref linkend="ddl-priv"/> for details
</span>
アクセス権限。
詳細は<a class="xref" href="ddl-priv.html" title="5.8. 権限">5.8</a>を参照してください
</p></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-conversion.html" title="52.14. pg_conversion">前へ</a> </td><td width="20%" align="center"><a accesskey="u" href="catalogs.html" title="第52章 システムカタログ">上へ</a></td><td width="40%" align="right"> <a accesskey="n" href="catalog-pg-db-role-setting.html" title="52.16. pg_db_role_setting">次へ</a></td></tr><tr><td width="40%" align="left" valign="top">52.14. <code class="structname">pg_conversion</code> </td><td width="20%" align="center"><a accesskey="h" href="index.html" title="PostgreSQL 18.3文書">ホーム</a></td><td width="40%" align="right" valign="top"> 52.16. <code class="structname">pg_db_role_setting</code></td></tr></table></div></body></html>