8000 sql: make the cache option on sequences be per-node by default · Issue #131531 · cockroachdb/cockroach · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
sql: make the cache option on sequences be per-node by default #131531
Closed
@fqazi

Description

@fqazi

Now that we have per-node sequence caching support has been added, we should consider changing the default so that the CREATE SEQUENCE sequence_name CACHE ... syntax defaults to per-node out of the box. This is better behaved and more desirable for most customers.

We should additionally consider adding an alias for a PER SESSION optional syntax, which would give the existing behaviour of using CREATE SEQUENCE sequence_name CACHE ....

How to get started

  • Do the SQL Statement Code Lab that runs through an example of adding new syntax.
  • Modify the appropriate sub-rule underneath create_sequence_stmt in pkg/sql/parser/sql.y.

Jira issue: CRDB-42587

Epic CRDB-49398

Metadata

Metadata

Assignees

Labels

C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)E-quick-winLikely to be a quick win for someone experienced.E-starterMight be suitable for a starter project for new employees or team members.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)good first issuetarget-release-25.3.0

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0