-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcatalog-pg-database.html
More file actions
99 lines (99 loc) · 11.7 KB
/
catalog-pg-database.html
File metadata and controls
99 lines (99 loc) · 11.7 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
<?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.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 V1.79.1" /><link rel="prev" href="catalog-pg-conversion.html" title="51.14. pg_conversion" /><link rel="next" href="catalog-pg-db-role-setting.html" title="51.16. pg_db_role_setting" /><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 12.4文書</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 12.4 catalog-pg-database.html">誤訳等の報告
</a></div></td></tr><tr><td width="10%" align="left"><a accesskey="p" href="catalog-pg-conversion.html" title="51.14. pg_conversion">前へ</a> </td><td width="10%" align="left"><a accesskey="u" href="catalogs.html" title="第51章 システムカタログ">上へ</a></td><td width="60%" align="center">51.15. <code class="structname">pg_database</code></td><td width="20%" align="right"> <a accesskey="n" href="catalog-pg-db-role-setting.html" title="51.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">51.15. <code class="structname">pg_database</code></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 <xref
linkend="sql-createdatabase"/> 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="xref" href="sql-createdatabase.html" title="CREATE DATABASE"><span class="refentrytitle">CREATE DATABASE</span></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>表51.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 /><col /><col /><col /></colgroup><thead><tr><th>名前</th><th>型</th><th>参照先</th><th>説明</th></tr></thead><tbody><tr><td><code class="structfield">oid</code></td><td><code class="type">oid</code></td><td> </td><td>行識別子</td></tr><tr><td><code class="structfield">datname</code></td><td><code class="type">name</code></td><td> </td><td>データベース名</td></tr><tr><td><code class="structfield">datdba</code></td><td><code class="type">oid</code></td><td><code class="literal"><a class="link" href="catalog-pg-authid.html" title="51.8. pg_authid"><code class="structname">pg_authid</code></a>.oid</code></td><td>データベースの所有者。通常はそのデータベースの作成者</td></tr><tr><td><code class="structfield">encoding</code></td><td><code class="type">int4</code></td><td> </td><td>
このデータベースの文字エンコード方式。
(<code class="function">pg_encoding_to_char()</code>で、この番号からエンコード方式名称に変換できます。)
</td></tr><tr><td><code class="structfield">datcollate</code></td><td><code class="type">name</code></td><td> </td><td>このデータベースのLC_COLLATE</td></tr><tr><td><code class="structfield">datctype</code></td><td><code class="type">name</code></td><td> </td><td>このデータベースのLC_CTYPE</td></tr><tr><td><code class="structfield">datistemplate</code></td><td><code class="type">bool</code></td><td> </td><td>
<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の場合、スーパーユーザまたはデータベースの所有者だけが複製することができます。
</td></tr><tr><td><code class="structfield">datallowconn</code></td><td><code class="type">bool</code></td><td> </td><td>
<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>
偽の時はこのデータベースには誰も接続できません。
これは<code class="literal">template0</code>データベースが変更されることを防ぐために使用されます。
</td></tr><tr><td><code class="structfield">datconnlimit</code></td><td><code class="type">int4</code></td><td> </td><td>
<span class="original">
Sets maximum number of concurrent connections that can be made
to this database. -1 means no limit.
</span>
このデータベースに対する同時のコネクションの最大数を設定します。
-1は無制限を意味します。
</td></tr><tr><td><code class="structfield">datlastsysoid</code></td><td><code class="type">oid</code></td><td> </td><td>
<span class="original">
Last system OID in the database; useful
particularly to <application>pg_dump</application>
</span>
データベース最終のシステムOID。
<span class="application">pg_dump</span>では特に有用です。
</td></tr><tr><td><code class="structfield">datfrozenxid</code></td><td><code class="type">xid</code></td><td> </td><td>
<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
<structname>pg_class</structname>.<structfield>relfrozenxid</structfield> values.
</span>
このデータベースの中で、この値よりも前のトランザクションIDは、永続的な(<span class="quote">「<span class="quote">凍結された</span>」</span>)トランザクションIDを持つように変更されています。
これは、このデータベースに対して、トランザクションID周回を防ぎ、かつ、<code class="literal">pg_xact</code>を縮小させることを目的としたバキュームを行うかどうかを追跡するために使用されます。
これはテーブル毎の<code class="structname">pg_class</code>.<code class="structfield">relfrozenxid</code>値の最小値になります。
</td></tr><tr><td><code class="structfield">datminmxid</code></td><td><code class="type">xid</code></td><td> </td><td>
<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
<structname>pg_class</structname>.<structfield>relminmxid</structfield> values.
</span>
このデータベース内のトランザクションIDで置換される前のすべてのマルチトランザクションID。
これは、トランザクションIDの周回問題を防ぐ、または<code class="literal">pg_multixact</code>を縮小させるためにデータベースをバキュームする必要があるかどうかを追跡するために使用されます。
これはテーブル毎の<code class="structname">pg_class</code>.<code class="structfield">relminmxid</code>の最小値です。
</td></tr><tr><td><code class="structfield">dattablespace</code></td><td><code class="type">oid</code></td><td><code class="literal"><a class="link" href="catalog-pg-tablespace.html" title="51.55. pg_tablespace"><code class="structname">pg_tablespace</code></a>.oid</code></td><td>
<span class="original">
The default tablespace for the database.
Within this database, all tables for which
<structname>pg_class</structname>.<structfield>reltablespace</structfield> is zero
will be stored in this tablespace; in particular, all the non-shared
system catalogs will be there.
</span>
データベース用のデフォルトテーブル空間。
このデータベース内で<code class="structname">pg_class</code>.<code class="structfield">reltablespace</code>がゼロであるすべてのテーブルは、このテーブル空間に格納されます。
特に、共有されていないすべてのシステムカタログはこのテーブル空間にあります。
</td></tr><tr><td><code class="structfield">datacl</code></td><td><code class="type">aclitem[]</code></td><td> </td><td>
<span class="original">
Access privileges; see <xref linkend="ddl-priv"/> for details
</span>
アクセス権限。
詳細は<a class="xref" href="ddl-priv.html" title="5.7. 権限">5.7</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-conversion.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-db-role-setting.html">次へ</a></td></tr><tr><td width="40%" align="left" valign="top">51.14. <code class="structname">pg_conversion</code> </td><td width="20%" align="center"><a accesskey="h" href="index.html">ホーム</a></td><td width="40%" align="right" valign="top"> 51.16. <code class="structname">pg_db_role_setting</code></td></tr></table></div></body></html>