Skip to content

Use proper SQLSTATE error codes #7

@CSenshi

Description

@CSenshi

Problem / Motivation

All errors surface as generic Postgres ERROR with no SQLSTATE differentiation. Applications can't programmatically distinguish connection failures from proto errors from gRPC call failures — they have to parse error message strings.

Proposed Solution

Map each GrpcError variant to an appropriate SQLSTATE code so applications can handle different failure types programmatically without string parsing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority: lowInfrastructure and nice-to-have

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions