29th September 2022:
PostgreSQL 15 RC 1 Released!

This documentation is for an unsupported version of PostgreSQL.

You may want to view the same page for the current version, or one of the other supported versions listed above instead.

You may want to view the same page for the current version, or one of the other supported versions listed above instead.

PostgreSQL 9.0.23 Documentation | ||||
---|---|---|---|---|

Prev | Up | Chapter 34. The Information Schema | Next |

The view `sequences` contains all
sequences defined in the current database. Only those sequences
are shown that the current user has access to (by way of being
the owner or having some privilege).

Table 34-33. `sequences`
Columns

Name | Data Type | Description |
---|---|---|

sequence_catalog |
sql_identifier |
Name of the database that contains the sequence (always the current database) |

sequence_schema |
sql_identifier |
Name of the schema that contains the sequence |

sequence_name |
sql_identifier |
Name of the sequence |

data_type |
character_data |
The data type of the sequence. In PostgreSQL, this is currently always
bigint. |

numeric_precision |
cardinal_number |
This column contains the (declared or implicit)
precision of the sequence data type (see above). The
precision indicates the number of significant digits. It
can be expressed in decimal (base 10) or binary (base 2)
terms, as specified in the column numeric_precision_radix. |

numeric_precision_radix |
cardinal_number |
This column indicates in which base the values in the
columns numeric_precision and
numeric_scale are expressed. The
value is either 2 or 10. |

numeric_scale |
cardinal_number |
This column contains the (declared or implicit) scale
of the sequence data type (see above). The scale
indicates the number of significant digits to the right
of the decimal point. It can be expressed in decimal
(base 10) or binary (base 2) terms, as specified in the
column numeric_precision_radix. |

maximum_value |
cardinal_number |
Not yet implemented |

minimum_value |
cardinal_number |
Not yet implemented |

increment |
cardinal_number |
Not yet implemented |

cycle_option |
yes_or_no |
Not yet implemented |