バージョンごとのドキュメント一覧

54.23. pg_sequences #

The view <structname>pg_sequences</structname> provides access to useful information about each sequence in the database. pg_sequencesビューはデータベース内の各シーケンスについての有用な情報へのアクセスを提供します。

表54.23 pg_sequencesの列

<title><structname>pg_sequences</structname> Columns</title>

Column Type 列 型

Description 説明

schemaname name (references <link linkend="catalog-pg-namespace"><structname>pg_namespace</structname></link>.<structfield>nspname</structfield>) (参照先 pg_namespace.nspname

Name of schema containing sequence シーケンスがあるスキーマの名前

sequencename name (references <link linkend="catalog-pg-class"><structname>pg_class</structname></link>.<structfield>relname</structfield>) (参照先 pg_class.relname

Name of sequence シーケンスの名前

sequenceowner name (references <link linkend="catalog-pg-authid"><structname>pg_authid</structname></link>.<structfield>rolname</structfield>) (参照先 pg_authid.rolname

Name of sequence's owner シーケンスの所有者の名前

data_type regtype (references <link linkend="catalog-pg-type"><structname>pg_type</structname></link>.<structfield>oid</structfield>) (参照先 pg_type.oid

Data type of the sequence シーケンスのデータ型

start_value int8

Start value of the sequence シーケンスの開始値

min_value int8

Minimum value of the sequence シーケンスの最小値

max_value int8

Maximum value of the sequence シーケンスの最大値

increment_by int8

Increment value of the sequence シーケンスの増分値

cycle bool

Whether the sequence cycles シーケンスが周回するかどうか

cache_size int8

Cache size of the sequence シーケンスのキャッシュサイズ

last_value int8

The last sequence value written to disk. If caching is used, this value can be greater than the last value handed out from the sequence. Null if the sequence has not been read from yet. Also, if the current user does not have <literal>USAGE</literal> or <literal>SELECT</literal> privilege on the sequence, the value is null. ディスクに書き込まれた最後のシーケンス値。 キャッシュが使用されている場合、この値はシーケンスから最後に取り出された値より大きくなることがあります。 シーケンスからまだ読み取られていないときはNULLになります。 また、現在のユーザがシーケンスについてUSAGEあるいはSELECT権限がない場合も値はNULLになります。