Skip to content

sql: support MACADDR type #45813

@randmark

Description

@randmark

Postgres has a set of data types to handle network addresses such as MACADDR, CIDR, and INET. http://etutorials.org/SQL/Postgresql/Part+I+General+PostgreSQL+Use/Chapter+2.+Working+with+Data+in+PostgreSQL/Network+Address+Data+Types/

CockroachDB talks about some of these here, #18846 but doesn't talk about the MACADDR data type which is needed by large organizations which want to use CockroachDB to track data center info.

Describe the solution you'd like
Support the network data types as per Postgres.

Describe alternatives you've considered
This can be done using text data types, but it doesn't have the same verification.

Jira issue: CRDB-5128

Epic CRDB-60812

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-sql-pgcompatSemantic compatibility with PostgreSQLC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)E-starterMight be suitable for a starter project for new employees or team members.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions