From e0e81648531003b10fa82752343efeb39197f6da Mon Sep 17 00:00:00 2001 From: Rich Loveland Date: Tue, 10 Jun 2025 11:44:56 -0400 Subject: [PATCH] Add docs on CREATE SEQUENCE PER NODE CACHE Fixes DOC-9830 NB. This change applied to all supported versions v24.1+ --- .../_includes/v24.1/misc/session-vars.md | 2 +- .../_includes/v24.3/misc/session-vars.md | 2 +- .../_includes/v25.2/misc/session-vars.md | 2 +- .../_includes/v25.3/misc/session-vars.md | 2 +- src/current/v24.1/create-sequence.md | 24 +++++++++++++++++++ src/current/v24.3/create-sequence.md | 24 +++++++++++++++++++ src/current/v25.2/create-sequence.md | 24 +++++++++++++++++++ src/current/v25.3/create-sequence.md | 24 +++++++++++++++++++ 8 files changed, 100 insertions(+), 4 deletions(-) diff --git a/src/current/_includes/v24.1/misc/session-vars.md b/src/current/_includes/v24.1/misc/session-vars.md index 2d4d85b7e39..bc363f7ef43 100644 --- a/src/current/_includes/v24.1/misc/session-vars.md +++ b/src/current/_includes/v24.1/misc/session-vars.md @@ -65,7 +65,7 @@ | `reorder_joins_limit` | Maximum number of joins that the optimizer will attempt to reorder when searching for an optimal query execution plan.

For more information, see [Join reordering]({% link {{ page.version.version }}/cost-based-optimizer.md %}#join-reordering). | `8` | Yes | Yes | | `require_explicit_primary_keys` | If `on`, CockroachDB throws an error for all tables created without an explicit primary key defined. | `off` | Yes | Yes | | `search_path` | A list of schemas that will be searched to resolve unqualified table or function names.
For more details, see [SQL name resolution]({% link {{ page.version.version }}/sql-name-resolution.md %}). | `public` | Yes | Yes | -| `serial_normalization` | Specifies the default handling of [`SERIAL`]({% link {{ page.version.version }}/serial.md %}) in table definitions. Valid options include `'rowid'`, `'virtual_sequence'`, `sql_sequence`, `sql_sequence_cached`, and `unordered_rowid`.
If set to `'virtual_sequence'`, the `SERIAL` type auto-creates a sequence for [better compatibility with Hibernate sequences](https://forum.cockroachlabs.com/t/hibernate-sequence-generator-returns-negative-number-and-ignore-unique-rowid/1885).
If set to `sql_sequence_cached`, you can use the `sql.defaults.serial_sequences_cache_size` [cluster setting]({% link {{ page.version.version }}/cluster-settings.md %}) to control the number of values to cache in a user's session, with a default of 256.
If set to `unordered_rowid`, the `SERIAL` type generates a globally unique 64-bit integer (a combination of the insert timestamp and the ID of the node executing the statement) that does not have unique ordering. | `'rowid'` | Yes | Yes | +| `serial_normalization` | Specifies the default handling of [`SERIAL`]({% link {{ page.version.version }}/serial.md %}) in table definitions. Valid options include `'rowid'`, `'virtual_sequence'`, `sql_sequence`, `sql_sequence_cached`, [`sql_sequence_cached_node`]({% link {{ page.version.version }}/create-sequence.md %}#per-node-cache), and `unordered_rowid`.
If set to `'virtual_sequence'`, the `SERIAL` type auto-creates a sequence for [better compatibility with Hibernate sequences](https://forum.cockroachlabs.com/t/hibernate-sequence-generator-returns-negative-number-and-ignore-unique-rowid/1885).
If set to `sql_sequence_cached` or `sql_sequence_cached_node`, you can use the `sql.defaults.serial_sequences_cache_size` [cluster setting]({% link {{ page.version.version }}/cluster-settings.md %}) to control the number of values to cache in a user's session, with a default of 256.
If set to `unordered_rowid`, the `SERIAL` type generates a globally unique 64-bit integer (a combination of the insert timestamp and the ID of the node executing the statement) that does not have unique ordering. | `'rowid'` | Yes | Yes | | `server_version` | The version of PostgreSQL that CockroachDB emulates. | Version-dependent | No | Yes | | `server_version_num` | The version of PostgreSQL that CockroachDB emulates. | Version-dependent | Yes | Yes | | `session_id` | The ID of the current session. | Session-dependent | No | Yes | diff --git a/src/current/_includes/v24.3/misc/session-vars.md b/src/current/_includes/v24.3/misc/session-vars.md index 175be5963ed..28f0b13ff07 100644 --- a/src/current/_includes/v24.3/misc/session-vars.md +++ b/src/current/_includes/v24.3/misc/session-vars.md @@ -65,7 +65,7 @@ | `reorder_joins_limit` | Maximum number of joins that the optimizer will attempt to reorder when searching for an optimal query execution plan.

For more information, see [Join reordering]({% link {{ page.version.version }}/cost-based-optimizer.md %}#join-reordering). | `8` | Yes | Yes | | `require_explicit_primary_keys` | If `on`, CockroachDB throws an error for all tables created without an explicit primary key defined. | `off` | Yes | Yes | | `search_path` | A list of schemas that will be searched to resolve unqualified table or function names.
For more details, see [SQL name resolution]({% link {{ page.version.version }}/sql-name-resolution.md %}). | `public` | Yes | Yes | -| `serial_normalization` | Specifies the default handling of [`SERIAL`]({% link {{ page.version.version }}/serial.md %}) in table definitions. Valid options include `'rowid'`, `'virtual_sequence'`, `sql_sequence`, `sql_sequence_cached`, and `unordered_rowid`.
If set to `'virtual_sequence'`, the `SERIAL` type auto-creates a sequence for [better compatibility with Hibernate sequences](https://forum.cockroachlabs.com/t/hibernate-sequence-generator-returns-negative-number-and-ignore-unique-rowid/1885).
If set to `sql_sequence_cached`, you can use the `sql.defaults.serial_sequences_cache_size` [cluster setting]({% link {{ page.version.version }}/cluster-settings.md %}) to control the number of values to cache in a user's session, with a default of 256.
If set to `unordered_rowid`, the `SERIAL` type generates a globally unique 64-bit integer (a combination of the insert timestamp and the ID of the node executing the statement) that does not have unique ordering. | `'rowid'` | Yes | Yes | +| `serial_normalization` | Specifies the default handling of [`SERIAL`]({% link {{ page.version.version }}/serial.md %}) in table definitions. Valid options include `'rowid'`, `'virtual_sequence'`, `sql_sequence`, `sql_sequence_cached`, [`sql_sequence_cached_node`]({% link {{ page.version.version }}/create-sequence.md %}#per-node-cache), and `unordered_rowid`.
If set to `'virtual_sequence'`, the `SERIAL` type auto-creates a sequence for [better compatibility with Hibernate sequences](https://forum.cockroachlabs.com/t/hibernate-sequence-generator-returns-negative-number-and-ignore-unique-rowid/1885).
If set to `sql_sequence_cached` or `sql_sequence_cached_node`, you can use the `sql.defaults.serial_sequences_cache_size` [cluster setting]({% link {{ page.version.version }}/cluster-settings.md %}) to control the number of values to cache in a user's session, with a default of 256.
If set to `unordered_rowid`, the `SERIAL` type generates a globally unique 64-bit integer (a combination of the insert timestamp and the ID of the node executing the statement) that does not have unique ordering. | `'rowid'` | Yes | Yes | | `server_version` | The version of PostgreSQL that CockroachDB emulates. | Version-dependent | No | Yes | | `server_version_num` | The version of PostgreSQL that CockroachDB emulates. | Version-dependent | Yes | Yes | | `session_id` | The ID of the current session. | Session-dependent | No | Yes | diff --git a/src/current/_includes/v25.2/misc/session-vars.md b/src/current/_includes/v25.2/misc/session-vars.md index ec0a2b1fcd7..944b8683c1b 100644 --- a/src/current/_includes/v25.2/misc/session-vars.md +++ b/src/current/_includes/v25.2/misc/session-vars.md @@ -69,7 +69,7 @@ | `reorder_joins_limit` | Maximum number of joins that the optimizer will attempt to reorder when searching for an optimal query execution plan.

For more information, see [Join reordering]({% link {{ page.version.version }}/cost-based-optimizer.md %}#join-reordering). | `8` | Yes | Yes | | `require_explicit_primary_keys` | If `on`, CockroachDB throws an error for all tables created without an explicit primary key defined. | `off` | Yes | Yes | | `search_path` | A list of schemas that will be searched to resolve unqualified table or function names.
For more details, see [SQL name resolution]({% link {{ page.version.version }}/sql-name-resolution.md %}). | `public` | Yes | Yes | -| `serial_normalization` | Specifies the default handling of [`SERIAL`]({% link {{ page.version.version }}/serial.md %}) in table definitions. Valid options include `'rowid'`, `'virtual_sequence'`, `sql_sequence`, `sql_sequence_cached`, and `unordered_rowid`.
If set to `'virtual_sequence'`, the `SERIAL` type auto-creates a sequence for [better compatibility with Hibernate sequences](https://forum.cockroachlabs.com/t/hibernate-sequence-generator-returns-negative-number-and-ignore-unique-rowid/1885).
If set to `sql_sequence_cached`, you can use the `sql.defaults.serial_sequences_cache_size` [cluster setting]({% link {{ page.version.version }}/cluster-settings.md %}) to control the number of values to cache in a user's session, with a default of 256.
If set to `unordered_rowid`, the `SERIAL` type generates a globally unique 64-bit integer (a combination of the insert timestamp and the ID of the node executing the statement) that does not have unique ordering. | `'rowid'` | Yes | Yes | +| `serial_normalization` | Specifies the default handling of [`SERIAL`]({% link {{ page.version.version }}/serial.md %}) in table definitions. Valid options include `'rowid'`, `'virtual_sequence'`, `sql_sequence`, `sql_sequence_cached`, [`sql_sequence_cached_node`]({% link {{ page.version.version }}/create-sequence.md %}#per-node-cache), and `unordered_rowid`.
If set to `'virtual_sequence'`, the `SERIAL` type auto-creates a sequence for [better compatibility with Hibernate sequences](https://forum.cockroachlabs.com/t/hibernate-sequence-generator-returns-negative-number-and-ignore-unique-rowid/1885).
If set to `sql_sequence_cached` or `sql_sequence_cached_node`, you can use the `sql.defaults.serial_sequences_cache_size` [cluster setting]({% link {{ page.version.version }}/cluster-settings.md %}) to control the number of values to cache in a user's session, with a default of 256.
If set to `unordered_rowid`, the `SERIAL` type generates a globally unique 64-bit integer (a combination of the insert timestamp and the ID of the node executing the statement) that does not have unique ordering. | `'rowid'` | Yes | Yes | | `server_version` | The version of PostgreSQL that CockroachDB emulates. | Version-dependent | No | Yes | | `server_version_num` | The version of PostgreSQL that CockroachDB emulates. | Version-dependent | Yes | Yes | | `session_id` | The ID of the current session. | Session-dependent | No | Yes | diff --git a/src/current/_includes/v25.3/misc/session-vars.md b/src/current/_includes/v25.3/misc/session-vars.md index ec0a2b1fcd7..944b8683c1b 100644 --- a/src/current/_includes/v25.3/misc/session-vars.md +++ b/src/current/_includes/v25.3/misc/session-vars.md @@ -69,7 +69,7 @@ | `reorder_joins_limit` | Maximum number of joins that the optimizer will attempt to reorder when searching for an optimal query execution plan.

For more information, see [Join reordering]({% link {{ page.version.version }}/cost-based-optimizer.md %}#join-reordering). | `8` | Yes | Yes | | `require_explicit_primary_keys` | If `on`, CockroachDB throws an error for all tables created without an explicit primary key defined. | `off` | Yes | Yes | | `search_path` | A list of schemas that will be searched to resolve unqualified table or function names.
For more details, see [SQL name resolution]({% link {{ page.version.version }}/sql-name-resolution.md %}). | `public` | Yes | Yes | -| `serial_normalization` | Specifies the default handling of [`SERIAL`]({% link {{ page.version.version }}/serial.md %}) in table definitions. Valid options include `'rowid'`, `'virtual_sequence'`, `sql_sequence`, `sql_sequence_cached`, and `unordered_rowid`.
If set to `'virtual_sequence'`, the `SERIAL` type auto-creates a sequence for [better compatibility with Hibernate sequences](https://forum.cockroachlabs.com/t/hibernate-sequence-generator-returns-negative-number-and-ignore-unique-rowid/1885).
If set to `sql_sequence_cached`, you can use the `sql.defaults.serial_sequences_cache_size` [cluster setting]({% link {{ page.version.version }}/cluster-settings.md %}) to control the number of values to cache in a user's session, with a default of 256.
If set to `unordered_rowid`, the `SERIAL` type generates a globally unique 64-bit integer (a combination of the insert timestamp and the ID of the node executing the statement) that does not have unique ordering. | `'rowid'` | Yes | Yes | +| `serial_normalization` | Specifies the default handling of [`SERIAL`]({% link {{ page.version.version }}/serial.md %}) in table definitions. Valid options include `'rowid'`, `'virtual_sequence'`, `sql_sequence`, `sql_sequence_cached`, [`sql_sequence_cached_node`]({% link {{ page.version.version }}/create-sequence.md %}#per-node-cache), and `unordered_rowid`.
If set to `'virtual_sequence'`, the `SERIAL` type auto-creates a sequence for [better compatibility with Hibernate sequences](https://forum.cockroachlabs.com/t/hibernate-sequence-generator-returns-negative-number-and-ignore-unique-rowid/1885).
If set to `sql_sequence_cached` or `sql_sequence_cached_node`, you can use the `sql.defaults.serial_sequences_cache_size` [cluster setting]({% link {{ page.version.version }}/cluster-settings.md %}) to control the number of values to cache in a user's session, with a default of 256.
If set to `unordered_rowid`, the `SERIAL` type generates a globally unique 64-bit integer (a combination of the insert timestamp and the ID of the node executing the statement) that does not have unique ordering. | `'rowid'` | Yes | Yes | | `server_version` | The version of PostgreSQL that CockroachDB emulates. | Version-dependent | No | Yes | | `server_version_num` | The version of PostgreSQL that CockroachDB emulates. | Version-dependent | Yes | Yes | | `session_id` | The ID of the current session. | Session-dependent | No | Yes | diff --git a/src/current/v24.1/create-sequence.md b/src/current/v24.1/create-sequence.md index eba6f3a07f7..e3bf4214fe9 100644 --- a/src/current/v24.1/create-sequence.md +++ b/src/current/v24.1/create-sequence.md @@ -38,6 +38,7 @@ The user must have the `CREATE` [privilege]({% link {{ page.version.version }}/s `RESTART [WITH]` | Sets `nextval` to the specified number, or back to the original `START` value. `NO CYCLE` | All sequences are set to `NO CYCLE` and the sequence will not wrap. `CACHE` | The number of sequence values to cache in memory for reuse in the session. A cache size of `1` means that there is no cache, and cache sizes of less than `1` are not valid.

**Default:** `1` (sequences are not cached by default) +`PER NODE CACHE` | The number of sequence values to cache in memory at the node level. All sessions on the node share the same cache, which can be concurrently accessed, and which reduces the chance of creating large gaps between generated IDs. A cache size of `1` means that there is no cache, and cache sizes of less than `1` are not valid.

**Default:** `256` (controlled by the [cluster setting]({% link {{ page.version.version }}/cluster-settings.md %}) `sql.defaults.serial_sequences_cache_size` when the [session variable]({% link {{ page.version.version }}/set-vars.md %}) `serial_normalization` is set to `sql_sequence_cached_node`) `OWNED BY column_name` | Associates the sequence to a particular column. If that column or its parent table is dropped, the sequence will also be dropped.
Specifying an owner column with `OWNED BY` replaces any existing owner column on the sequence. To remove existing column ownership on the sequence and make the column free-standing, specify `OWNED BY NONE`.

**Default:** `NONE` `opt_temp` | Defines the sequence as a session-scoped temporary sequence. For more information, see [Temporary sequences](#temporary-sequences). @@ -296,6 +297,29 @@ For example, to cache 10 sequence values in memory: (1 row) ~~~ +### Cache sequence values per node + +For improved performance, use the `PER NODE CACHE` clause to cache sequence values in memory at the node level. + +For example, to cache 10 sequence values per node: + +{% include_cached copy-clipboard.html %} +~~~ sql +CREATE SEQUENCE customer_seq_node_cached PER NODE CACHE 10; +~~~ + +{% include_cached copy-clipboard.html %} +~~~ sql +SHOW CREATE customer_seq_node_cached; +~~~ + +~~~ + table_name | create_statement +----------------------+------------------------------------------------------------------------------------------------------------------ + customer_seq_node_cached | CREATE SEQUENCE public.customer_seq_node_cached MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT 1 START 1 PER NODE CACHE 10 +(1 row) +~~~ + ## See also - [`ALTER SEQUENCE`]({% link {{ page.version.version }}/alter-sequence.md %}) diff --git a/src/current/v24.3/create-sequence.md b/src/current/v24.3/create-sequence.md index eba6f3a07f7..e3bf4214fe9 100644 --- a/src/current/v24.3/create-sequence.md +++ b/src/current/v24.3/create-sequence.md @@ -38,6 +38,7 @@ The user must have the `CREATE` [privilege]({% link {{ page.version.version }}/s `RESTART [WITH]` | Sets `nextval` to the specified number, or back to the original `START` value. `NO CYCLE` | All sequences are set to `NO CYCLE` and the sequence will not wrap. `CACHE` | The number of sequence values to cache in memory for reuse in the session. A cache size of `1` means that there is no cache, and cache sizes of less than `1` are not valid.

**Default:** `1` (sequences are not cached by default) +`PER NODE CACHE` | The number of sequence values to cache in memory at the node level. All sessions on the node share the same cache, which can be concurrently accessed, and which reduces the chance of creating large gaps between generated IDs. A cache size of `1` means that there is no cache, and cache sizes of less than `1` are not valid.

**Default:** `256` (controlled by the [cluster setting]({% link {{ page.version.version }}/cluster-settings.md %}) `sql.defaults.serial_sequences_cache_size` when the [session variable]({% link {{ page.version.version }}/set-vars.md %}) `serial_normalization` is set to `sql_sequence_cached_node`) `OWNED BY column_name` | Associates the sequence to a particular column. If that column or its parent table is dropped, the sequence will also be dropped.
Specifying an owner column with `OWNED BY` replaces any existing owner column on the sequence. To remove existing column ownership on the sequence and make the column free-standing, specify `OWNED BY NONE`.

**Default:** `NONE` `opt_temp` | Defines the sequence as a session-scoped temporary sequence. For more information, see [Temporary sequences](#temporary-sequences). @@ -296,6 +297,29 @@ For example, to cache 10 sequence values in memory: (1 row) ~~~ +### Cache sequence values per node + +For improved performance, use the `PER NODE CACHE` clause to cache sequence values in memory at the node level. + +For example, to cache 10 sequence values per node: + +{% include_cached copy-clipboard.html %} +~~~ sql +CREATE SEQUENCE customer_seq_node_cached PER NODE CACHE 10; +~~~ + +{% include_cached copy-clipboard.html %} +~~~ sql +SHOW CREATE customer_seq_node_cached; +~~~ + +~~~ + table_name | create_statement +----------------------+------------------------------------------------------------------------------------------------------------------ + customer_seq_node_cached | CREATE SEQUENCE public.customer_seq_node_cached MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT 1 START 1 PER NODE CACHE 10 +(1 row) +~~~ + ## See also - [`ALTER SEQUENCE`]({% link {{ page.version.version }}/alter-sequence.md %}) diff --git a/src/current/v25.2/create-sequence.md b/src/current/v25.2/create-sequence.md index eba6f3a07f7..e3bf4214fe9 100644 --- a/src/current/v25.2/create-sequence.md +++ b/src/current/v25.2/create-sequence.md @@ -38,6 +38,7 @@ The user must have the `CREATE` [privilege]({% link {{ page.version.version }}/s `RESTART [WITH]` | Sets `nextval` to the specified number, or back to the original `START` value. `NO CYCLE` | All sequences are set to `NO CYCLE` and the sequence will not wrap. `CACHE` | The number of sequence values to cache in memory for reuse in the session. A cache size of `1` means that there is no cache, and cache sizes of less than `1` are not valid.

**Default:** `1` (sequences are not cached by default) +`PER NODE CACHE` | The number of sequence values to cache in memory at the node level. All sessions on the node share the same cache, which can be concurrently accessed, and which reduces the chance of creating large gaps between generated IDs. A cache size of `1` means that there is no cache, and cache sizes of less than `1` are not valid.

**Default:** `256` (controlled by the [cluster setting]({% link {{ page.version.version }}/cluster-settings.md %}) `sql.defaults.serial_sequences_cache_size` when the [session variable]({% link {{ page.version.version }}/set-vars.md %}) `serial_normalization` is set to `sql_sequence_cached_node`) `OWNED BY column_name` | Associates the sequence to a particular column. If that column or its parent table is dropped, the sequence will also be dropped.
Specifying an owner column with `OWNED BY` replaces any existing owner column on the sequence. To remove existing column ownership on the sequence and make the column free-standing, specify `OWNED BY NONE`.

**Default:** `NONE` `opt_temp` | Defines the sequence as a session-scoped temporary sequence. For more information, see [Temporary sequences](#temporary-sequences). @@ -296,6 +297,29 @@ For example, to cache 10 sequence values in memory: (1 row) ~~~ +### Cache sequence values per node + +For improved performance, use the `PER NODE CACHE` clause to cache sequence values in memory at the node level. + +For example, to cache 10 sequence values per node: + +{% include_cached copy-clipboard.html %} +~~~ sql +CREATE SEQUENCE customer_seq_node_cached PER NODE CACHE 10; +~~~ + +{% include_cached copy-clipboard.html %} +~~~ sql +SHOW CREATE customer_seq_node_cached; +~~~ + +~~~ + table_name | create_statement +----------------------+------------------------------------------------------------------------------------------------------------------ + customer_seq_node_cached | CREATE SEQUENCE public.customer_seq_node_cached MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT 1 START 1 PER NODE CACHE 10 +(1 row) +~~~ + ## See also - [`ALTER SEQUENCE`]({% link {{ page.version.version }}/alter-sequence.md %}) diff --git a/src/current/v25.3/create-sequence.md b/src/current/v25.3/create-sequence.md index eba6f3a07f7..e3bf4214fe9 100644 --- a/src/current/v25.3/create-sequence.md +++ b/src/current/v25.3/create-sequence.md @@ -38,6 +38,7 @@ The user must have the `CREATE` [privilege]({% link {{ page.version.version }}/s `RESTART [WITH]` | Sets `nextval` to the specified number, or back to the original `START` value. `NO CYCLE` | All sequences are set to `NO CYCLE` and the sequence will not wrap. `CACHE` | The number of sequence values to cache in memory for reuse in the session. A cache size of `1` means that there is no cache, and cache sizes of less than `1` are not valid.

**Default:** `1` (sequences are not cached by default) +`PER NODE CACHE` | The number of sequence values to cache in memory at the node level. All sessions on the node share the same cache, which can be concurrently accessed, and which reduces the chance of creating large gaps between generated IDs. A cache size of `1` means that there is no cache, and cache sizes of less than `1` are not valid.

**Default:** `256` (controlled by the [cluster setting]({% link {{ page.version.version }}/cluster-settings.md %}) `sql.defaults.serial_sequences_cache_size` when the [session variable]({% link {{ page.version.version }}/set-vars.md %}) `serial_normalization` is set to `sql_sequence_cached_node`) `OWNED BY column_name` | Associates the sequence to a particular column. If that column or its parent table is dropped, the sequence will also be dropped.
Specifying an owner column with `OWNED BY` replaces any existing owner column on the sequence. To remove existing column ownership on the sequence and make the column free-standing, specify `OWNED BY NONE`.

**Default:** `NONE` `opt_temp` | Defines the sequence as a session-scoped temporary sequence. For more information, see [Temporary sequences](#temporary-sequences). @@ -296,6 +297,29 @@ For example, to cache 10 sequence values in memory: (1 row) ~~~ +### Cache sequence values per node + +For improved performance, use the `PER NODE CACHE` clause to cache sequence values in memory at the node level. + +For example, to cache 10 sequence values per node: + +{% include_cached copy-clipboard.html %} +~~~ sql +CREATE SEQUENCE customer_seq_node_cached PER NODE CACHE 10; +~~~ + +{% include_cached copy-clipboard.html %} +~~~ sql +SHOW CREATE customer_seq_node_cached; +~~~ + +~~~ + table_name | create_statement +----------------------+------------------------------------------------------------------------------------------------------------------ + customer_seq_node_cached | CREATE SEQUENCE public.customer_seq_node_cached MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT 1 START 1 PER NODE CACHE 10 +(1 row) +~~~ + ## See also - [`ALTER SEQUENCE`]({% link {{ page.version.version }}/alter-sequence.md %})