Documentation
¶
Overview ¶
Package common provides error handling utilities for the FDW package.
This package defines error constructors that wrap errors with appropriate Postgres error codes and severity levels for proper client error reporting. It also provides conversions from gRPC status codes to Postgres error codes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertError ¶
ConvertError converts gRPC status errors to appropriate Postgres errors.
func NewQueryError ¶
NewQueryError wraps an error as a Postgres query error. This is used for runtime query execution errors.
func NewSemanticsError ¶
NewSemanticsError wraps an error as a Postgres semantic error with fatal severity. This is used when a query is syntactically valid but semantically incorrect.
func NewUnsupportedError ¶
NewUnsupportedError wraps an error as a Postgres "feature not supported" error. This is used when a query or feature is not implemented by the FDW.
Types ¶
This section is empty.