-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcatalog-pg-index.html
More file actions
258 lines (258 loc) · 18.8 KB
/
Copy pathcatalog-pg-index.html
File metadata and controls
258 lines (258 loc) · 18.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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<?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.26. pg_index</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-foreign-table.html" title="51.25. pg_foreign_table" /><link rel="next" href="catalog-pg-inherits.html" title="51.27. pg_inherits" /><meta name="viewport" content="width=device-width,initial-scale=1.0" /></head><body id="docContent" class="container-fluid col-10"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="4" align="center"><a accesskey="h" href="index.html">PostgreSQL 13.1文書</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 13.1 catalog-pg-index.html">誤訳等の報告
</a></div></td></tr><tr><td width="10%" align="left"><a accesskey="p" href="catalog-pg-foreign-table.html" title="51.25. pg_foreign_table">前へ</a> </td><td width="10%" align="left"><a accesskey="u" href="catalogs.html" title="第51章 システムカタログ">上へ</a></td><td width="60%" align="center">51.26. <code class="structname">pg_index</code></td><td width="20%" align="right"> <a accesskey="n" href="catalog-pg-inherits.html" title="51.27. pg_inherits">次へ</a></td></tr></table><hr /></div><div class="sect1" id="CATALOG-PG-INDEX"><div class="titlepage"><div><div><h2 class="title" style="clear: both">51.26. <code class="structname">pg_index</code></h2></div></div></div><a id="id-1.10.4.28.2" class="indexterm"></a><p>
<span class="original">
The catalog <structname>pg_index</structname> contains part of the information
about indexes. The rest is mostly in
<structname>pg_class</structname>.
</span>
<code class="structname">pg_index</code>カタログはインデックス情報の一部を保持します。
その他のほとんどの情報は<code class="structname">pg_class</code>にあります。
</p><div class="table" id="id-1.10.4.28.4"><p class="title"><strong>表51.26 <code class="structname">pg_index</code>の列</strong></p><div class="table-contents"><span class="original">
<title><structname>pg_index</structname> Columns</title>
</span><table class="table" summary="pg_indexの列" 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">indexrelid</code> <code class="type">oid</code>
<span class="original">
(references <link linkend="catalog-pg-class"><structname>pg_class</structname></link>.<structfield>oid</structfield>)
</span>
(参照先 <a class="link" href="catalog-pg-class.html" title="51.11. pg_class"><code class="structname">pg_class</code></a>.<code class="structfield">oid</code>)
</p>
<p>
<span class="original">
The OID of the <structname>pg_class</structname> entry for this index
</span>
このインデックスに対する<code class="structname">pg_class</code>項目のOID
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">indrelid</code> <code class="type">oid</code>
<span class="original">
(references <link linkend="catalog-pg-class"><structname>pg_class</structname></link>.<structfield>oid</structfield>)
</span>
(参照先 <a class="link" href="catalog-pg-class.html" title="51.11. pg_class"><code class="structname">pg_class</code></a>.<code class="structfield">oid</code>)
</p>
<p>
<span class="original">
The OID of the <structname>pg_class</structname> entry for the table this index is for
</span>
このインデックスが使われるテーブルに対する<code class="structname">pg_class</code>項目のOID
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">indnatts</code> <code class="type">int2</code>
</p>
<p>
<span class="original">
The total number of columns in the index (duplicates
<literal>pg_class.relnatts</literal>); this number includes both key and included attributes
</span>
インデックス内の列数(<code class="literal">pg_class.relnatts</code>の複製)
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">indnkeyatts</code> <code class="type">int2</code>
</p>
<p>
<span class="original">
The number of <firstterm>key columns</firstterm> in the index,
not counting any <firstterm>included columns</firstterm>, which are
merely stored and do not participate in the index semantics
</span>
格納されているだけで、インデックスのセマンティクスに寄与していない<em class="firstterm">included columns</em>を含まないインデックス内の<em class="firstterm">key columns</em>の数。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">indisunique</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
If true, this is a unique index
</span>
真の場合は一意性インデックス
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">indisprimary</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
If true, this index represents the primary key of the table
(<structfield>indisunique</structfield> should always be true when this is true)
</span>
真の場合このインデックスはテーブルの主キーを表します
(この値が真の時<code class="structfield">indisunique</code>は常に真でなければなりません)。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">indisexclusion</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
If true, this index supports an exclusion constraint
</span>
真の場合、このインデックスは排他制約をサポートします。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">indimmediate</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
If true, the uniqueness check is enforced immediately on
insertion
(irrelevant if <structfield>indisunique</structfield> is not true)
</span>
真の場合、一意性検査が挿入時即座に強制されます。
(<code class="structfield">indisunique</code>が真でなければ無関係です。)
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">indisclustered</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
If true, the table was last clustered on this index
</span>
真の場合、前回このインデックスを元にテーブルはクラスタ化されました。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">indisvalid</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
If true, the index is currently valid for queries. False means the
index is possibly incomplete: it must still be modified by
<command>INSERT</command>/<command>UPDATE</command> operations, but it cannot safely
be used for queries. If it is unique, the uniqueness property is not
guaranteed true either.
</span>
真の場合、現在このインデックスは問い合わせに対して有効です。
偽は、インデックスが不完全かもしれないことを意味します。
<code class="command">INSERT</code>/<code class="command">UPDATE</code>操作による変更が行われているはずで、問い合わせに使用するには安全ではありません。
一意性インデックスであれば、一意性も保証されません。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">indcheckxmin</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
If true, queries must not use the index until the <structfield>xmin</structfield>
of this <structname>pg_index</structname> row is below their <symbol>TransactionXmin</symbol>
event horizon, because the table may contain broken HOT chains with
incompatible rows that they can see
</span>
真の場合、<code class="structname">pg_index</code>行の<code class="structfield">xmin</code>が<code class="symbol">TransactionXmin</code>イベント境界値を下回るまで、問い合わせはインデックスを使用してはいけません。
なぜなら、テーブルは互換性の無い行と共に破壊されたHOTチェインを含み、それらが可視であるかもしれないからです。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">indisready</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
If true, the index is currently ready for inserts. False means the
index must be ignored by <command>INSERT</command>/<command>UPDATE</command>
operations.
</span>
真の場合、インデックスは挿入に対する準備ができています。
偽の場合はインデックスは<code class="command">INSERT</code>/<code class="command">UPDATE</code>操作により無視されなければならないことを意味します。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">indislive</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
If false, the index is in process of being dropped, and should be
ignored for all purposes (including HOT-safety decisions)
</span>
偽の場合、インデックスの削除処理が進行中であり、このためすべての目的において(HOT安全性の決定を含む)無視しなければなりません。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">indisreplident</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
If true this index has been chosen as <quote>replica identity</quote>
using <command>ALTER TABLE ... REPLICA IDENTITY USING INDEX
...</command>
</span>
真の場合、このインデックスは<code class="command">ALTER TABLE ... REPLICA IDENTITY USING INDEX ...</code>を用いて<span class="quote">「<span class="quote">replica identity</span>」</span>が選択されます。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">indkey</code> <code class="type">int2vector</code>
<span class="original">
(references <link linkend="catalog-pg-attribute"><structname>pg_attribute</structname></link>.<structfield>attnum</structfield>)
</span>
(参照先 <a class="link" href="catalog-pg-attribute.html" title="51.7. pg_attribute"><code class="structname">pg_attribute</code></a>.<code class="structfield">attnum</code>)
</p>
<p>
<span class="original">
This is an array of <structfield>indnatts</structfield> values that
indicate which table columns this index indexes. For example a value
of <literal>1 3</literal> would mean that the first and the third table
columns make up the index entries. Key columns come before non-key
(included) columns. A zero in this array indicates that the
corresponding index attribute is an expression over the table columns,
rather than a simple column reference.
</span>
このインデックスがどのテーブル列をインデックスとしているかを示す<code class="structfield">indnatts</code>配列の値です。
例えば、<code class="literal">1 3</code>は1番目と3番目のテーブル列がインデックスキーとなっていることを示します。
キー列は、(INCLUDE句で指定した)非キー列の前に来ます。
この配列でゼロとなっているのは対応するインデックスの属性が単純な列参照ではなくテーブル列に渡った演算式であることを示します。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">indcollation</code> <code class="type">oidvector</code>
<span class="original">
(references <link linkend="catalog-pg-collation"><structname>pg_collation</structname></link>.<structfield>oid</structfield>)
</span>
(参照先 <a class="link" href="catalog-pg-collation.html" title="51.12. pg_collation"><code class="structname">pg_collation</code></a>.<code class="structfield">oid</code>)
</p>
<p>
<span class="original">
For each column in the index key
(<structfield>indnkeyatts</structfield> values), this contains the OID
of the collation to use for the index, or zero if the column is not of
a collatable data type.
</span>
インデックスキー(<code class="structfield">indnkeyatts</code>の値)内の各列に関してここにはインデックスで使用される照合順序のOIDが含まれます。
照合できないデータ型の列ではゼロが入ります。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">indclass</code> <code class="type">oidvector</code>
<span class="original">
(references <link linkend="catalog-pg-opclass"><structname>pg_opclass</structname></link>.<structfield>oid</structfield>)
</span>
(参照先 <a class="link" href="catalog-pg-opclass.html" title="51.33. pg_opclass"><code class="structname">pg_opclass</code></a>.<code class="structfield">oid</code>)
</p>
<p>
<span class="original">
For each column in the index key
(<structfield>indnkeyatts</structfield> values), this contains the OID
of the operator class to use. See
<link linkend="catalog-pg-opclass"><structname>pg_opclass</structname></link> for details.
</span>
インデックスキー(<code class="structfield">indnkeyatts</code>の値)内のそれぞれの列に対して、使用する演算子クラスのOIDを保持します。
<a class="link" href="catalog-pg-opclass.html" title="51.33. pg_opclass"><code class="structname">pg_opclass</code></a>を参照してください。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">indoption</code> <code class="type">int2vector</code>
</p>
<p>
<span class="original">
This is an array of <structfield>indnkeyatts</structfield> values that
store per-column flag bits. The meaning of the bits is defined by
the index's access method.
</span>
列毎のフラグビットを格納する<code class="structfield">indnkeyatts</code>値の配列です。
ビットの意味はインデックスのアクセスメソッドによって定義されています。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">indexprs</code> <code class="type">pg_node_tree</code>
</p>
<p>
<span class="original">
Expression trees (in <function>nodeToString()</function>
representation) for index attributes that are not simple column
references. This is a list with one element for each zero
entry in <structfield>indkey</structfield>. Null if all index attributes
are simple references.
</span>
単純な列参照でないインデックス属性の(<code class="function">nodeToString()</code>表現による)演算式ツリー。
<code class="structfield">indkey</code>がゼロの各エントリについて1つの要素があるリストになっています。
すべてのインデックス属性が単純な参照ならNULLとなります。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">indpred</code> <code class="type">pg_node_tree</code>
</p>
<p>
<span class="original">
Expression tree (in <function>nodeToString()</function>
representation) for partial index predicate. Null if not a
partial index.
</span>
部分インデックス属性の(<code class="function">nodeToString()</code>表現による)演算式ツリー。
部分インデックスでなければNULL。
</p></td></tr></tbody></table></div></div><br class="table-break" /></div><div xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navfooter"><hr></hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="catalog-pg-foreign-table.html" title="51.25. pg_foreign_table">前へ</a> </td><td width="20%" align="center"><a accesskey="u" href="catalogs.html" title="第51章 システムカタログ">上へ</a></td><td width="40%" align="right"> <a accesskey="n" href="catalog-pg-inherits.html" title="51.27. pg_inherits">次へ</a></td></tr><tr><td width="40%" align="left" valign="top">51.25. <code xmlns="http://www.w3.org/1999/xhtml" class="structname">pg_foreign_table</code> </td><td width="20%" align="center"><a accesskey="h" href="index.html" title="PostgreSQL 13.1文書">ホーム</a></td><td width="40%" align="right" valign="top"> 51.27. <code xmlns="http://www.w3.org/1999/xhtml" class="structname">pg_inherits</code></td></tr></table></div></body></html>