common

package
v1.49.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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

func ConvertError(err error) error

ConvertError converts gRPC status errors to appropriate Postgres errors.

func NewQueryError

func NewQueryError(baseErr error) error

NewQueryError wraps an error as a Postgres query error. This is used for runtime query execution errors.

func NewSemanticsError

func NewSemanticsError(baseErr error) error

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

func NewUnsupportedError(baseErr error) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL