#2587·pgx

how to understand what kind of error returned by Query

Author: vtolstovCreated Jun 22, 2026Updated Jun 29, 2026

Hi!, i'm using pgx with yandex ha-sql library and create something like automatic retry for failed statements (internally all my queries are idempotent). But for some reasons error may not mean network error, or postgresql server error like conflict with recovery.

So does it possible to understand what error belongs to group and retry only needed group of errors (not i have ugly thing like check for context errors and some network errors)