Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
53.23. pg_sequences
Prev UpChapter 53. System ViewsHome Next

53.23. pg_sequences

The viewpg_sequences provides access to useful information about each sequence in the database.

Table 53.23. pg_sequences Columns

Column Type

Description

schemanamename (referencespg_namespace.nspname)

Name of schema containing sequence

sequencenamename (referencespg_class.relname)

Name of sequence

sequenceownername (referencespg_authid.rolname)

Name of sequence's owner

data_typeregtype (referencespg_type.oid)

Data type of the sequence

start_valueint8

Start value of the sequence

min_valueint8

Minimum value of the sequence

max_valueint8

Maximum value of the sequence

increment_byint8

Increment value of the sequence

cyclebool

Whether the sequence cycles

cache_sizeint8

Cache size of the sequence

last_valueint8

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.


Thelast_value column will read as null if any of the following are true:

  • The sequence has not been read from yet.

  • The current user does not haveUSAGE orSELECT privilege on the sequence.

  • The sequence is unlogged and the server is a standby.


Prev Up Next
53.22. pg_seclabels Home 53.24. pg_settings
pdfepub
Go to Postgres Pro Standard 15
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp