Skip to content

sql: 32 bit SERIAL type #24062

@vivekmenezes

Description

@vivekmenezes

Cockroach's SERIAL type is currently 64 bits. With the new added SEQUENCE functionality it is possible to implement SERIAL as a postgres compatible 32 bit type.

#18688

This might involve setting the current SERIAL type to a supported backwards compatibility type and introducing another type under the hood for new instances of the type. Caching functionality needs to be implemented for performance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-sql-pgcompatSemantic compatibility with PostgreSQLA-sql-semanticsA-sql-sequencesSequence handling in SQLC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions