-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcatalog-pg-class.html
More file actions
488 lines (487 loc) · 36 KB
/
catalog-pg-class.html
File metadata and controls
488 lines (487 loc) · 36 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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
<?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.11. pg_class</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-cast.html" title="52.10. pg_cast" /><link rel="next" href="catalog-pg-collation.html" title="52.12. pg_collation" /><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-class.html">誤訳等の報告
</a></div></td></tr><tr><td width="10%" align="left"><a accesskey="p" href="catalog-pg-cast.html" title="52.10. pg_cast">前へ</a> </td><td width="10%" align="left"><a accesskey="u" href="catalogs.html" title="第52章 システムカタログ">上へ</a></td><td width="60%" align="center">52.11. <code class="structname">pg_class</code></td><td width="20%" align="right"> <a accesskey="n" href="catalog-pg-collation.html" title="52.12. pg_collation">次へ</a></td></tr></table><hr /></div><div class="sect1" id="CATALOG-PG-CLASS"><div class="titlepage"><div><div><h2 class="title" style="clear: both">52.11. <code class="structname">pg_class</code> <a href="#CATALOG-PG-CLASS" class="id_link">#</a></h2></div></div></div><a id="id-1.10.4.13.2" class="indexterm"></a><p>
<span class="original">
The catalog <structname>pg_class</structname> describes tables and
other objects that have columns or are otherwise similar to a
table. This includes indexes (but see also <link
linkend="catalog-pg-index"><structname>pg_index</structname></link>),
sequences (but see also <link
linkend="catalog-pg-sequence"><structname>pg_sequence</structname></link>),
views, materialized views, composite types, and TOAST tables;
see <structfield>relkind</structfield>.
Below, when we mean all of these kinds of objects we speak of
<quote>relations</quote>. Not all of <structname>pg_class</structname>'s
columns are meaningful for all relation kinds.
</span>
<code class="structname">pg_class</code>カタログは、テーブルとその他に列を持つもの、あるいはテーブルに類似したオブジェクトを記述します。
その中にはインデックス(<a class="link" href="catalog-pg-index.html" title="52.26. pg_index"><code class="structname">pg_index</code></a>も参照)、シーケンス(<a class="link" href="catalog-pg-sequence.html" title="52.47. pg_sequence"><code class="structname">pg_sequence</code></a>も参照)、ビュー、マテリアライズドビュー、複合型およびTOASTテーブルが含まれます。
<code class="structfield">relkind</code>を参照してください。
これより以降、<span class="quote">「<span class="quote">リレーション</span>」</span>と記されている場合はこれらすべてのオブジェクトを意味しています。
<code class="structname">pg_class</code>のすべての列がすべてのリレーション種別にとって意味を持つわけではありません。
</p><div class="table" id="id-1.10.4.13.4"><p class="title"><strong>表52.11 <code class="structname">pg_class</code>の列</strong></p><div class="table-contents"><span class="original">
<title><structname>pg_class</structname> Columns</title>
</span><table class="table" summary="pg_classの列" 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">relname</code> <code class="type">name</code>
</p>
<p>
<span class="original">
Name of the table, index, view, etc.
</span>
テーブル、インデックス、ビューなどの名前
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relnamespace</code> <code class="type">oid</code>
<span class="original">
(references <link linkend="catalog-pg-namespace"><structname>pg_namespace</structname></link>.<structfield>oid</structfield>)
</span>
(参照先 <a class="link" href="catalog-pg-namespace.html" title="52.32. pg_namespace"><code class="structname">pg_namespace</code></a>.<code class="structfield">oid</code>)
</p>
<p>
<span class="original">
The OID of the namespace that contains this relation
</span>
このリレーションを持つ名前空間のOID
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">reltype</code> <code class="type">oid</code>
<span class="original">
(references <link linkend="catalog-pg-type"><structname>pg_type</structname></link>.<structfield>oid</structfield>)
</span>
(参照先 <a class="link" href="catalog-pg-type.html" title="52.64. pg_type"><code class="structname">pg_type</code></a>.<code class="structfield">oid</code>)
</p>
<p>
<span class="original">
The OID of the data type that corresponds to this table's row type,
if any; zero for indexes, sequences, and toast tables, which have
no <structname>pg_type</structname> entry
</span>
このテーブルの行の型に対応するデータ型のOID。ゼロならば、<code class="structname">pg_type</code>エントリを持たないインデックス、シーケンス、TOASTテーブル。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">reloftype</code> <code class="type">oid</code>
<span class="original">
(references <link linkend="catalog-pg-type"><structname>pg_type</structname></link>.<structfield>oid</structfield>)
</span>
(参照先 <a class="link" href="catalog-pg-type.html" title="52.64. pg_type"><code class="structname">pg_type</code></a>.<code class="structfield">oid</code>)
</p>
<p>
<span class="original">
For typed tables, the OID of the underlying composite type;
zero for all other relations
</span>
型付けされたテーブルでは背後にある複合型のOID。
その他のリレーションではゼロ
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relowner</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 relation
</span>
リレーションの所有者
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relam</code> <code class="type">oid</code>
<span class="original">
(references <link linkend="catalog-pg-am"><structname>pg_am</structname></link>.<structfield>oid</structfield>)
</span>
(参照先 <a class="link" href="catalog-pg-am.html" title="52.3. pg_am"><code class="structname">pg_am</code></a>.<code class="structfield">oid</code>)
</p>
<p>
<span class="original">
The access method used to access this table or index.
Not meaningful if the relation is a sequence or
has no on-disk file,
except for partitioned tables, where, if set, it takes
precedence over <varname>default_table_access_method</varname>
when determining the access method to use for partitions created
when one is not specified in the creation command.
</span>
このテーブルまたはインデックスをアクセスするために使用されるアクセスメソッド。
リレーションがシーケンスの場合やディスク上のファイルがない場合は意味がありません。
パーティションテーブルの場合、設定されている場合は、作成コマンドで指定されていないパーティションのアクセスメソッドを決定する際に、<code class="varname">default_table_access_method</code>より優先されます。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relfilenode</code> <code class="type">oid</code>
</p>
<p>
<span class="original">
Name of the on-disk file of this relation; zero means this
is a <quote>mapped</quote> relation whose disk file name is determined
by low-level state
</span>
このリレーションのディスク上のファイルの名前です。
ゼロはディスク上のファイル名が低レベルな状態で決定される<span class="quote">「<span class="quote">マップ付けされた</span>」</span>リレーションであることを意味します。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">reltablespace</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 tablespace in which this relation is stored.
If zero, the database's default tablespace is implied.
Not meaningful if the relation has no on-disk file,
except for partitioned tables, where this is the tablespace
in which partitions will be created when one is not
specified in the creation command.
</span>
このリレーションが格納されるテーブル空間。
ゼロの場合、データベースのデフォルトのテーブル空間が暗黙的に使用されます。
ディスク上にファイルがないリレーションの場合は、パーティションテーブルの場合を除き、意味がありません。
パーティションテーブルの場合、作成コマンドでテーブル空間が指定されていない場合にパーティションが作成されるテーブル空間です。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relpages</code> <code class="type">int4</code>
</p>
<p>
<span class="original">
Size of the on-disk representation of this table in pages (of size
<symbol>BLCKSZ</symbol>). This is only an estimate used by the
planner. It is updated by <link linkend="sql-vacuum"><command>VACUUM</command></link>,
<link linkend="sql-analyze"><command>ANALYZE</command></link>, and a few DDL commands such as
<link linkend="sql-createindex"><command>CREATE INDEX</command></link>.
</span>
このテーブルのディスク上表現のページ単位(<code class="symbol">BLCKSZ</code>)のサイズ。
これはプランナで使用される単なる推測値です。
<a class="link" href="sql-vacuum.html" title="VACUUM"><code class="command">VACUUM</code></a>、<a class="link" href="sql-analyze.html" title="ANALYZE"><code class="command">ANALYZE</code></a>および<a class="link" href="sql-createindex.html" title="CREATE INDEX"><code class="command">CREATE INDEX</code></a>コマンドなどの一部のDDLコマンドで更新されます。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">reltuples</code> <code class="type">float4</code>
</p>
<p>
<span class="original">
Number of live rows in the table. This is only an estimate used by
the planner. It is updated by <link linkend="sql-vacuum"><command>VACUUM</command></link>,
<link linkend="sql-analyze"><command>ANALYZE</command></link>, and a few DDL commands such as
<link linkend="sql-createindex"><command>CREATE INDEX</command></link>.
If the table has never yet been vacuumed or
analyzed, <structfield>reltuples</structfield>
contains <literal>-1</literal> indicating that the row count is
unknown.
</span>
テーブル内の生きている行数。
これはプランナで使用される単なる推測値です。
<a class="link" href="sql-vacuum.html" title="VACUUM"><code class="command">VACUUM</code></a>、<a class="link" href="sql-analyze.html" title="ANALYZE"><code class="command">ANALYZE</code></a>、<a class="link" href="sql-createindex.html" title="CREATE INDEX"><code class="command">CREATE INDEX</code></a>などの一部のDDLコマンドで更新されます。
テーブルにまだVACUUMやANALYZEが行われていなければ、<code class="structfield">reltuples</code>には行数が未知であることを示す<code class="literal">-1</code>が入ります。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relallvisible</code> <code class="type">int4</code>
</p>
<p>
<span class="original">
Number of pages that are marked all-visible in the table's
visibility map. This is only an estimate used by the
planner. It is updated by <link linkend="sql-vacuum"><command>VACUUM</command></link>,
<link linkend="sql-analyze"><command>ANALYZE</command></link>, and a few DDL commands such as
<link linkend="sql-createindex"><command>CREATE INDEX</command></link>.
</span>
テーブル内の可視マップ内で全て可視とマークされているページ数。
これはプランナで使用される単なる見積です。
<a class="link" href="sql-vacuum.html" title="VACUUM"><code class="command">VACUUM</code></a>、<a class="link" href="sql-analyze.html" title="ANALYZE"><code class="command">ANALYZE</code></a>、<a class="link" href="sql-createindex.html" title="CREATE INDEX"><code class="command">CREATE INDEX</code></a>などの一部のDDLコマンドで更新されます。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relallfrozen</code> <code class="type">int4</code>
</p>
<p>
<span class="original">
Number of pages that are marked all-frozen in the table's visibility
map. This is only an estimate used for triggering autovacuums. It can
also be used along with <structfield>relallvisible</structfield> for
scheduling manual vacuums and tuning <link
linkend="runtime-config-vacuum-freezing">vacuum's freezing
behavior</link>.
It is updated by
<link linkend="sql-vacuum"><command>VACUUM</command></link>,
<link linkend="sql-analyze"><command>ANALYZE</command></link>,
and a few DDL commands such as
<link linkend="sql-createindex"><command>CREATE INDEX</command></link>.
</span>
テーブルの可視性マップ内で全て凍結とマークされているページ数。
これは自動バキュームの起動タイミングを決定するために使用される単なる見積です。
また、<code class="structfield">relallvisible</code>と一緒に使用して、手動でのバキュームのスケジューリングや<a class="link" href="runtime-config-vacuum.html#RUNTIME-CONFIG-VACUUM-FREEZING" title="19.10.4. 凍結処理">バキュームの凍結動作</a>のチューニングを行うこともできます。
<a class="link" href="sql-vacuum.html" title="VACUUM"><code class="command">VACUUM</code></a>、<a class="link" href="sql-analyze.html" title="ANALYZE"><code class="command">ANALYZE</code></a>および<a class="link" href="sql-createindex.html" title="CREATE INDEX"><code class="command">CREATE INDEX</code></a>コマンドなどの一部のDDLコマンドで更新されます。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">reltoastrelid</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="52.11. pg_class"><code class="structname">pg_class</code></a>.<code class="structfield">oid</code>)
</p>
<p>
<span class="original">
OID of the TOAST table associated with this table, zero if none. The
TOAST table stores large attributes <quote>out of line</quote> in a
secondary table.
</span>
このテーブルに関連しているTOASTテーブルのOID。
何もない場合はゼロ。
TOASTテーブルは<span class="quote">「<span class="quote">行に収まらない</span>」</span>大きい属性を副テーブルに格納します。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relhasindex</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
True if this is a table and it has (or recently had) any indexes
</span>
テーブルであり、かつ、インデックスを持つ(あるいはつい最近まで持っていた)場合はtrue
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relisshared</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
True if this table is shared across all databases in the cluster. Only
certain system catalogs (such as <link linkend="catalog-pg-database"><structname>pg_database</structname></link>)
are shared.
</span>
クラスタ内の全てのデータベースにわたってこのテーブルが共有されている場合はtrue。
(<a class="link" href="catalog-pg-database.html" title="52.15. pg_database"><code class="structname">pg_database</code></a>のような)ある特定のシステムカタログのみ共有されます。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relpersistence</code> <code class="type">char</code>
</p>
<p>
<span class="original">
<literal>p</literal> = permanent table/sequence, <literal>u</literal> = unlogged table/sequence,
<literal>t</literal> = temporary table/sequence
</span>
<code class="literal">p</code> = 永続テーブル/シーケンス、
<code class="literal">u</code> = ログを取らないテーブル/シーケンス、
<code class="literal">t</code> = 一時テーブル/シーケンス
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relkind</code> <code class="type">char</code>
</p>
<p>
<span class="original">
<literal>r</literal> = ordinary table,
<literal>i</literal> = index,
<literal>S</literal> = sequence,
<literal>t</literal> = TOAST table,
<literal>v</literal> = view,
<literal>m</literal> = materialized view,
<literal>c</literal> = composite type,
<literal>f</literal> = foreign table,
<literal>p</literal> = partitioned table,
<literal>I</literal> = partitioned index
</span>
<code class="literal">r</code> = 通常のテーブル、
<code class="literal">i</code> = インデックス、
<code class="literal">S</code> = シーケンス、
<code class="literal">t</code> = TOASTテーブル、
<code class="literal">v</code> = ビュー、
<code class="literal">m</code> = マテリアライズドビュー、
<code class="literal">c</code> = 複合型、
<code class="literal">f</code> = 外部テーブル、
<code class="literal">p</code> = パーティションテーブル、
<code class="literal">I</code> = パーティションインデックス
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relnatts</code> <code class="type">int2</code>
</p>
<p>
<span class="original">
Number of user columns in the relation (system columns not
counted). There must be this many corresponding entries in
<link linkend="catalog-pg-attribute"><structname>pg_attribute</structname></link>. See also
<structname>pg_attribute</structname>.<structfield>attnum</structfield>.
</span>
リレーションにあるユーザ列数(システム列は含みません)。
<a class="link" href="catalog-pg-attribute.html" title="52.7. pg_attribute"><code class="structname">pg_attribute</code></a>にこれに対応する数多くの項目があるはずです。
<code class="structname">pg_attribute</code>.<code class="structfield">attnum</code>も参照してください。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relchecks</code> <code class="type">int2</code>
</p>
<p>
<span class="original">
Number of <literal>CHECK</literal> constraints on the table; see
<link linkend="catalog-pg-constraint"><structname>pg_constraint</structname></link> catalog
</span>
テーブル上の<code class="literal">CHECK</code>制約の数。
<a class="link" href="catalog-pg-constraint.html" title="52.13. pg_constraint"><code class="structname">pg_constraint</code></a>カタログを参照してください
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relhasrules</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
True if table has (or once had) rules; see
<link linkend="catalog-pg-rewrite"><structname>pg_rewrite</structname></link> catalog
</span>
テーブルにルールがある(あるいは以前あった)場合はtrue。
<a class="link" href="catalog-pg-rewrite.html" title="52.45. pg_rewrite"><code class="structname">pg_rewrite</code></a>カタログを参照してください
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relhastriggers</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
True if table has (or once had) triggers; see
<link linkend="catalog-pg-trigger"><structname>pg_trigger</structname></link> catalog
</span>
テーブルにトリガがある(あるいは以前あった)場合はtrue。
<a class="link" href="catalog-pg-trigger.html" title="52.58. pg_trigger"><code class="structname">pg_trigger</code></a>カタログを参照してください
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relhassubclass</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
True if table or index has (or once had) any inheritance children or partitions
</span>
テーブルあるいはインデックスが子テーブルあるいはパーティションに継承されている(または以前に継承されていた)場合はtrue
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relrowsecurity</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
True if table has row-level security enabled; see
<link linkend="catalog-pg-policy"><structname>pg_policy</structname></link> catalog
</span>
行単位セキュリティが有効なテーブルの場合はtrue。
<a class="link" href="catalog-pg-policy.html" title="52.38. pg_policy"><code class="structname">pg_policy</code></a>カタログを参照してください
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relforcerowsecurity</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
True if row-level security (when enabled) will also apply to table owner; see
<link linkend="catalog-pg-policy"><structname>pg_policy</structname></link> catalog
</span>
行単位セキュリティが(有効にされているとして)テーブルの所有者にも適用される場合はtrue。
<a class="link" href="catalog-pg-policy.html" title="52.38. pg_policy"><code class="structname">pg_policy</code></a>カタログを参照してください
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relispopulated</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
True if relation is populated (this is true for all
relations other than some materialized views)
</span>
リレーションにデータが投入されている場合はtrue(マテリアライズドビュー以外のすべてのリレーションではtrueです)
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relreplident</code> <code class="type">char</code>
</p>
<p>
<span class="original">
Columns used to form <quote>replica identity</quote> for rows:
<literal>d</literal> = default (primary key, if any),
<literal>n</literal> = nothing,
<literal>f</literal> = all columns,
<literal>i</literal> = index with
<structfield>indisreplident</structfield> set (same as nothing if the
index used has been dropped)
</span>
行に<span class="quote">「<span class="quote">replica identity</span>」</span>フォームを使った列:
<code class="literal">d</code> = デフォルト(もしあれば主キー)、
<code class="literal">n</code> = 無し、
<code class="literal">f</code> = 全ての列、
<code class="literal">i</code> = インデックスと <code class="structfield">indisreplident</code>のセット(使用されていたインデックスが削除されていた場合は、無し、と同様)
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relispartition</code> <code class="type">bool</code>
</p>
<p>
<span class="original">
True if table or index is a partition
</span>
テーブルあるいはインデックスがパーティションである場合はtrue
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relrewrite</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="52.11. pg_class"><code class="structname">pg_class</code></a>.<code class="structfield">oid</code>)
</p>
<p>
<span class="original">
For new relations being written during a DDL operation that requires a
table rewrite, this contains the OID of the original relation;
otherwise zero. That state is only visible internally; this field should
never contain anything other than zero for a user-visible relation.
</span>
テーブルの書き換えが必要なDDL操作中に書き込みが行われる新しいリレーションでは、これは元のリレーションのOIDを持ちます。
そうでなければゼロです。
この状態は内部的にのみ可視です。
このフィールドはユーザから見えるリレーションではゼロ以外を持つべきではありません。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relfrozenxid</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 table. This is used to track
whether the table needs to be vacuumed in order to prevent transaction
ID wraparound or to allow <literal>pg_xact</literal> to be shrunk. Zero
(<symbol>InvalidTransactionId</symbol>) if the relation is not a table.
</span>
この値より以前のトランザクションIDはすべて、このテーブルで永続的な(<span class="quote">「<span class="quote">凍結された</span>」</span>)トランザクションIDに置き換えられています。
これは、このテーブルに対して、トランザクションID周回を防ぎ、かつ、<code class="literal">pg_xact</code>を縮小させることを目的としたバキュームを行うかどうかを追跡するために使用されます。
リレーションがテーブルではない場合はゼロ(<code class="symbol">InvalidTransactionId</code>)です。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relminmxid</code> <code class="type">xid</code>
</p>
<p>
<span class="original">
All multixact IDs before this one have been replaced by a
transaction ID in this table. This is used to track
whether the table needs to be vacuumed in order to prevent multixact ID
wraparound or to allow <literal>pg_multixact</literal> to be shrunk. Zero
(<symbol>InvalidMultiXactId</symbol>) if the relation is not a table.
</span>
この値より以前のマルチトランザクションIDはすべて、このテーブルのトランザクションIDで置き換えられています。
これは、マルチトランザクションIDのID周回を防ぐ、または<code class="literal">pg_multixact</code>を縮小させるために、テーブルをバキュームする必要があるかどうかを追跡するために使用されます。
リレーションがテーブルではない場合はゼロ(<code class="symbol">InvalidMultiXactId</code>)です。
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relacl</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><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">reloptions</code> <code class="type">text[]</code>
</p>
<p>
<span class="original">
Access-method-specific options, as <quote>keyword=value</quote> strings
</span>
<span class="quote">「<span class="quote">keyword=value</span>」</span>文字列のような、アクセスメソッド特有のオプション
</p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
<code class="structfield">relpartbound</code> <code class="type">pg_node_tree</code>
</p>
<p>
<span class="original">
If table is a partition (see <structfield>relispartition</structfield>),
internal representation of the partition bound
</span>
テーブルがパーティションの場合(<code class="structfield">relispartition</code>参照)のパーティション境界の内部表現
</p></td></tr></tbody></table></div></div><br class="table-break" /><p>
<span class="original">
Several of the Boolean flags in <structname>pg_class</structname> are maintained
lazily: they are guaranteed to be true if that's the correct state, but
may not be reset to false immediately when the condition is no longer
true. For example, <structfield>relhasindex</structfield> is set by
<link linkend="sql-createindex"><command>CREATE INDEX</command></link>, but it is never cleared by
<link linkend="sql-dropindex"><command>DROP INDEX</command></link>. Instead, <link linkend="sql-vacuum"><command>VACUUM</command></link> clears
<structfield>relhasindex</structfield> if it finds the table has no indexes. This
arrangement avoids race conditions and improves concurrency.
</span>
<code class="structname">pg_class</code>内の複数の論理型フラグは、ゆっくりと保守されます。
正しい状態にあるときにtrueであることが保証されていますが、その条件がtrueでなくなった時即座にfalseに再設定されないかもしれません。
例えば<code class="structfield">relhasindex</code>は<a class="link" href="sql-createindex.html" title="CREATE INDEX"><code class="command">CREATE INDEX</code></a>で設定されますが、<a class="link" href="sql-dropindex.html" title="DROP INDEX"><code class="command">DROP INDEX</code></a>では決して初期化されません。
代わりに<a class="link" href="sql-vacuum.html" title="VACUUM"><code class="command">VACUUM</code></a>がそのテーブルにインデックスがないことを判定した場合に<code class="structfield">relhasindex</code>を初期化します。
この調整により競合状態を防止し、同時実行性が向上します。
</p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="catalog-pg-cast.html" title="52.10. pg_cast">前へ</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-collation.html" title="52.12. pg_collation">次へ</a></td></tr><tr><td width="40%" align="left" valign="top">52.10. <code class="structname">pg_cast</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.12. <code class="structname">pg_collation</code></td></tr></table></div></body></html>