ErrLookup › jackc/pgx

jackc/pgx

PostgreSQL driver and toolkit for Go · Go · 162 source files

Analyzed at ec1a0befd2 on 2026-08-04. 523 documented errors.

Code / MessageTypeSeverityTags
no more results in batch
exception error batch, pipelining, query-execution
no reference to batch
exception error batch, pipeline, internal-invariant
too many rows in result set
exception error rows, data-integrity, sentinel
simple protocol queries must be run with standard_conforming
validation error simple-protocol, security, guc, sanitization
simple protocol queries must be run with client_encoding=UTF
validation error simple-protocol, encoding, guc, sanitization
array element OID not registered
exception error types, loadtype, registration, array
domain base type OID not registered
exception error types, loadtype, registration, domain
range element OID not registered
exception error types, loadtype, registration, range
multirange element OID not registered
exception error types, loadtype, registration, multirange
unknown typtype
exception error types, loadtype, unsupported, pseudo-type
insufficient bytes
exception error decode, binary-protocol, corruption, pgio
invalid length
exception error decode, binary-protocol, type-mapping, pgio
failed to remove large object
exception warning large-objects, unlink, not-found
failed to write to large object
exception error large-objects, write, transaction, file-descriptor
short write to large object
exception error large-objects, write, partial-write
invalid write to large object
exception error large-objects, write, protocol-error, unreachable-guard
invalid read of large object
exception error large-objects, io, protocol, postgresql
OAuth authentication required but no token provider configur
validation error authentication, oauth, config, security
channel binding required but server does not support SCRAM-S
validation error authentication, scram, channel-binding, tls, security
channel binding required but channel binding data is not ava
validation error authentication, scram, channel-binding, tls, security
server does not support SCRAM-SHA-256
exception error authentication, scram, server-config, postgresql
invalid SCRAM server-first-message received from server: did
exception error authentication, scram, protocol, security
invalid SCRAM server-first-message received from server: did
exception error authentication, scram, protocol, security
invalid SCRAM server-first-message received from server: did
exception error authentication, scram, protocol, security
invalid SCRAM nonce: did not start with client nonce
exception critical authentication, scram, security, mitm, protocol
invalid SCRAM nonce: did not include server nonce
exception error authentication, scram, security, protocol
invalid SCRAM server-final-message received from server
exception error authentication, scram, protocol, security
invalid SCRAM ServerSignature received from server
exception critical authentication, scram, security, mitm, tls
no peer certificates for channel binding
exception error tls, channel-binding, certificates, security, scram
invalid keyword/value
validation error config, connection-string, parsing
invalid backslash
validation error config, connection-string, parsing, escaping
unterminated quoted string in connection info string
validation error config, connection-string, parsing, quoting
unable to add CA to cert pool
validation error tls, ssl, certificates, config, security
failed to parse certificate from server: {err}
exception error
sslmode is invalid
validation error
both "sslcert" and "sslkey" are required
validation error
failed to decode sslkey
validation error
outside range
validation error
negative timeout
validation error
read only connection
exception error
connection is not read only
exception error
server is not in hot standby mode
exception error
server is in standby mode
exception error
conn closed
exception error
kerberos error: no GSSAPI provider registered, see https://g
validation error
server refused TLS connection
exception error
EscapeString must be run with standard_conforming_strings=on
validation error
EscapeString must be run with client_encoding=UTF8
validation error
SyncConn: conn never synchronized
exception error
pipeline closed
exception error
pipeline has unsynced requests
exception error
pipeline: no more results but expected ReadyForQuery
exception critical pipeline, protocol, connection, fatal-error, pgconn
bad authentication message size
exception error authentication, protocol, cleartext-password, pgproto3, connection
bad auth type
exception error authentication, protocol, cleartext-password, pgproto3, validation
authentication message too short
exception error authentication, protocol, gss, kerberos, pgproto3
bad auth type
exception error authentication, protocol, gss, kerberos, pgproto3, validation
authentication message too short
exception error authentication, protocol, gss, kerberos, pgproto3
bad auth type
exception error authentication, protocol, gss, kerberos, pgproto3, validation
bad authentication message size
exception error authentication, protocol, md5, pgproto3, connection
bad auth type
exception error authentication, protocol, md5, pgproto3, validation
bad authentication message size
exception error authentication, protocol, auth-ok, pgproto3, connection
bad auth type
exception error authentication, protocol, auth-ok, pgproto3, validation
authentication message too short
exception error authentication, protocol, sasl, scram, pgproto3
bad auth type
exception error authentication, protocol, sasl, scram, pgproto3, validation
authentication message too short
exception error authentication, protocol, sasl, scram, pgproto3
bad auth type
exception error authentication, protocol, sasl, scram, pgproto3, validation
authentication message too short
exception error authentication, protocol, sasl, scram, pgproto3
bad auth type
validation error authentication, protocol, sasl, scram, pgproto3, validation
too many parameter format codes
validation error bind, protocol, encode, parameter-limit, pgproto3
too many parameters
validation error bind, protocol, encode, parameter-limit, pgproto3
too many result format codes
validation error bind, protocol, encode, parameter-limit, pgproto3
cancel request too short
validation error pgproto3, protocol, decoding, cancel, wire-protocol, validation
cancel request too long
validation error pgproto3, protocol, decoding, cancel, wire-protocol, validation
bad cancel request code
validation error pgproto3, protocol, decoding, cancel, wire-protocol, authentication
secret key too long
validation error pgproto3, protocol, encoding, cancel, wire-protocol, validation
invalid length for Close.ObjectType
validation error pgproto3, json, serialization, validation, close
too many column format codes
validation error pgproto3, protocol, encoding, copy, replication, wire-protocol, validation
invalid length for CopyBothResponse.OverallFormat
validation error pgproto3, json, serialization, validation, copy, replication
too many column format codes
validation error pgproto3, protocol, encoding, copy, wire-protocol, validation
invalid length for CopyInResponse.OverallFormat
validation error pgproto3, json, serialization, validation, copy
too many column format codes
validation error pgproto3, protocol, encoding, copy, wire-protocol, validation
invalid length for CopyOutResponse.OverallFormat
validation error pgproto3, json, serialization, validation, copy
too many values
validation error pgproto3, protocol, encoding, data-row, wire-protocol, validation
invalid length for Describe.ObjectType
validation error pgproto3, json, serialization, validation, describe
authentication message too short
validation error pgproto3, protocol, decoding, authentication, wire-protocol, connection
AuthTypeSCMCreds is unimplemented
exception error pgproto3, authentication, unsupported, configuration, connection
AuthTypeSSPI is unimplemented
exception error pgproto3, authentication, unsupported, configuration, sspi, windows, connection
too many arg format codes
validation error pgproto3, protocol, encoding, function-call, wire-protocol, validation
too many arguments
validation error pgproto3, protocol, encoding, function-call, wire-protocol, validation
gss encoding request too short
validation error pgproto3, protocol, decoding, gss, wire-protocol, validation
bad gss encoding request code
validation error pgproto3, protocol, decoding, gss, wire-protocol, authentication
too many parameter oids
validation error
too many parameter oids
validation error
unknown protocol representation
validation error
message body too large
validation error
invalid length for ReadyForQuery.TxStatus
validation error
too many fields
validation error
invalid SASLInitialResponse
validation error
ssl request too short
validation error
bad ssl request code
validation error
startup message too short
validation error
invalid net.IPNet
validation error
invalid net.IP
validation error
read past end of composite
exception error
unexpected end of string
validation error
found end before closing double-quote ('"')
validation error
found end instead of value
validation error
netip.AddrFromSlice failed
exception error
scan target type changed
exception error
cannot find encode plan
exception error
pgxpool: too many failed attempts acquiring connection; like
exception error
rows is closed
exception error
unknown format code
exception error
Stmt.Exec deprecated and not implemented
exception error
Stmt.Query deprecated and not implemented
exception error
invalid log level
validation error
tx is closed
exception error
commit unexpectedly resulted in rollback
exception error
not a string and cannot be encoded as text
exception error
batch already closed
exception error
unexpected pipeline result: %T
exception error
cannot use QueryExecModeCacheStatement with disabled stateme
exception error
unknown value %q
validation error
failed to deallocate previously failed statement %q: %w
exception error
rewrite query failed: %w
exception error
unknown QueryExecMode: %v
exception error
expected %d arguments, got %d
validation error
expected statement description, got %T
exception error
expected sync, got %T
exception error
unknown composite type field OID: %v
exception error
failed to deallocate cached statement(s): %w
exception error
statement description failed: %w
exception error
unknown QueryExecMode: %v
exception error
expected %d values, got %d values
validation error
No type names were supplied.
validation error
While generating load types query: %w
exception error
While scanning type information: %w
exception error
Array element OID %v not registered while loading pgtype %q
exception error
Unknown field for composite type %q: field %q (OID %v) is n
exception error
Domain base type OID %v was not already registered, needed f
exception error
Range element OID %v was not already registered, needed for
exception error
Multirange element OID %v was not already registered, needed
exception error
Unknown typtype %q was found while registering %q
exception error
While processing rows: %w
exception error
Cannot identify server version in %q
exception error
postgres version parsing failed: %w
exception error
failed to encode args[%d]: %w
exception error
mismatched param and argument count
validation error
%w: %d needed at offset %d, %d remain
exception error
invalid byte count %d at offset %d
exception error
%w: unterminated string at offset %d
exception error
invalid element count %d at offset %d
exception error
element count %d at offset %d exceeds %d remaining bytes
exception error
invalid value length %d at offset %d
exception error
%d unexpected trailing bytes at offset %d
exception error
%w: expected %d bytes, got %d
exception error
first sql argument must be > 0
validation error
insufficient arguments
validation error
invalid arg type: %T
validation error
invalid Part type: %T
validation error
unused argument: %d
validation error
StructArgs requires a struct or pointer to struct, got nil
validation error
StructArgs requires a non-nil pointer to struct
validation error
StructArgs requires a struct or pointer to struct, got %s
validation error
duplicate StructArgs key %q
validation error
field %s has empty `%s` tag
validation error
argument %s found in sql query but not present in StrictName
validation error
argument %s of StrictNamedArgs not found in sql query
validation error
failed to obtain OAuth token: %w
exception error
invalid OAuth error response from server: %w
exception error
OAuth authentication failed: %s
exception error
unexpected message type during OAuth auth: %T
exception error
channel binding required but failed to get server certificat
exception error
expected AuthenticationSASLContinue message but received une
exception error
expected AuthenticationSASLFinal message but received unexpe
exception error
invalid SCRAM salt received from server: %w
exception error
invalid SCRAM iteration count received from server: %w
exception error
SCRAM iteration count from server too high: %d (max %d)
exception error
tls-server-end-point channel binding is undefined for certif
exception error
failed to split host:port in '%s', err: %w
validation error
failed to read service file: %v
validation error
unable to find service: %v
validation error
unable to load system certificate pool: %w
validation error
unable to read CA file: %w
validation error
unable to read sslkey: %w
validation error
unable to find sslpassword
validation error
unable to decrypt key: %w
validation error
unable to read cert: %w
validation error
unable to load cert: %w
validation error
invalid protocol version: %q
validation error
expected AuthenticationGSSContinue message but received unex
exception error
hostname resolving error: %w
exception error
AfterConnect error: %w
exception error
error parsing port (%s) from lookup: %w
exception error
%s: %w
exception error
tls error on cancel connection: %w
exception error
write to connection for cancellation: %w
exception error
extended protocol limited to %v parameters
validation error
unexpected DataRow message without preceding RowDescription
exception error
SyncConn: Ping failed while syncing conn: %w
exception error
pipeline: %s: received unexpected message type %T
exception error
result format codes length %d does not match field count %d
validation error
authentication method requirement %q failed: %s
exception error
negative require_auth method %q cannot be mixed with non-neg
validation error
require_auth method %q cannot be mixed with negative methods
validation error
invalid require_auth method: %q
validation error
require_auth method %q is specified more than once
validation error
invalid length of startup packet: %d
exception error
unknown startup message code: %d
exception error
invalid message length: %d
exception error
unknown message type: %c
exception error
authType not recognized: %d
exception error
cannot get param %d: %w
exception error
invalid message length: %d
exception error
unknown message type: %c
exception error
unknown authentication type: %d
exception error
Bad startup message version number. Expected %d or %d, got %
exception error
Bad startup message last byte. Expected 0, got %d
exception error
array header: %w
exception error
array has too many dimensions: %d
exception error
invalid array: %w
exception error
invalid array, expected '[' or '=' got %v
exception error
invalid array, expected ':' got %v
exception error
invalid array, expected ']' got %v
exception error
invalid array, expected '{' got %v
exception error
invalid array value: %w
exception error
unexpected trailing data: %v
exception error
unable to encode %v
exception error
array claims %d elements but only %d bytes remain
exception error
array element %d: %w
exception error
failed to scan array element %d: %w
exception error
array dimensions describe %d elements but %d were parsed
exception error
unknown format code %d
exception error
cannot scan %T
exception error
invalid length for bit/varbit: %w
exception error
invalid length for bit/varbit: bitLen=%d
exception error
invalid length for bit/varbit: bitLen=%d: %w
exception error
cannot scan %T
exception error
cannot scan NULL into %T
exception error
invalid length for bool: %v
exception error
cannot scan empty string into %T
exception error
unknown boolean string representation %q
exception error
cannot scan %T
exception error
Box: %w
exception error
invalid length for Box: %v
exception error
invalid format for Box
exception error
cannot scan NULL into *int8
exception error
%d is less than minimum value for int8
exception error
%d is greater than maximum value for int8
exception error
cannot scan NULL into *int16
exception error
%d is less than minimum value for int16
exception error
%d is greater than maximum value for int16
exception error
cannot scan NULL into *int32
exception error
%d is less than minimum value for int32
exception error
%d is greater than maximum value for int32
exception error
cannot scan NULL into *int64
exception error
cannot scan NULL into *int
exception error
%d is less than minimum value for int
exception error
%d is greater than maximum value for int
exception error
cannot scan NULL into *uint8
exception error
%d is less than minimum value for uint8
exception error
%d is greater than maximum value for uint8
exception error
cannot scan NULL into *uint16
exception error
%d is less than minimum value for uint16
exception error
%d is greater than maximum value for uint16
exception error
cannot scan NULL into *uint32
exception error
%d is less than minimum value for uint32
exception error
%d is greater than maximum value for uint32
exception error
cannot scan NULL into *uint64
exception error
%d is less than minimum value for uint64
exception error
%d is greater than maximum value for int64
exception error
cannot scan into *uint64: %w
exception error
cannot scan %v into *uint64
exception error
%d is greater than maximum value for uint
validation error
cannot scan NULL into *uint
validation error
cannot scan into *uint: %w
validation error
cannot scan %v into *uint
validation error
cannot scan NULL into *float32
validation error
%f is greater than maximum value for int64
validation error
cannot scan NULL into *float64
validation error
cannot scan NULL into *string
validation error
cannot scan NULL into *time.Time
validation error
cannot scan Infinity into *time.Time
validation error
cannot scan -Infinity into *time.Time
validation error
invalid InfinityModifier: %v
validation error
%d microseconds cannot be represented as time.Time
validation error
cannot scan NULL into *time.Interval
validation error
cannot scan NULL into *net.IPNet
validation error
cannot scan %v to *net.IP
validation error
cannot scan %v to netip.Addr
validation error
cannot scan NULL to string
validation error
cannot scan NULL into *[16]byte
validation error
%#v only has %d public fields - %d is out of bounds
validation error
cannot scan NULL into %#v
validation error
PostgreSQL array has %d dimensions but slice has %d dimensio
validation error
anyArrayArrayReflect: cannot scan NULL into %v
validation error
anyArrayArrayReflect: cannot scan multi-dimensional array in
validation error
anyArrayArrayReflect: cannot scan array with length %v into
validation error
invalid hex format
validation error
cannot scan %T
validation error
Circle: %w
validation error
invalid length for Circle: %v
validation error
invalid format for Circle
validation error
unable to encode %v into OID %d in binary format
validation error
unable to encode %v into OID %d in text format
validation error
unknown format code %d
validation error
unable to scan OID %d in text format into %v
validation error
unable to scan OID %d in binary format into %v
validation error
Record incomplete: %w
validation error
cannot scan composite field %d into CompositeFields of lengt
validation error
Record incomplete %v
validation error
composite text format must start with '('
validation error
composite text format must end with ')'
validation error
composite text format unterminated quoted field
validation error
cannot scan NULL into CompositeFields
validation error
cannot scan %T
validation error
date: %w
validation error
invalid date format
validation error
cannot scan NULL into %T
validation error
cannot scan %T
validation error
cannot scan NULL into %T
validation error
float4: %w
exception error
cannot losslessly convert %v to int64
validation error
cannot scan %T
validation error
cannot scan NULL into %T
validation error
float8: %w
exception error
cannot losslessly convert %v to int64
validation error
cannot scan %T
validation error
hstore: %w
exception error
hstore pair %d: %w
exception error
hstore pair %d: key cannot be NULL
validation error
expected '%c' ('%#v'); found '%c' ('%#v')
validation error
expected '%c' ('%#v'); found end
validation error
unexpected escape in quoted string: found '%#v'
validation error
Received an invalid size for an inet: %d
validation error
%d is less than minimum value for Int2
validation error
%d is greater than maximum value for Int2
validation error
cannot scan %T
validation error
%d is greater than maximum value for int2
validation error
%d is less than minimum value for int2
validation error
cannot scan NULL into %T
validation error
int2: %w
exception error
%d is less than minimum value for int8
validation error
%d is greater than maximum value for int8
validation error
uint2: %w
exception error
%d is less than minimum value for uint8
validation error
%d is greater than maximum value for uint8
validation error
%d is less than minimum value for uint16
validation error
%d is less than minimum value for uint32
validation error
%d is less than minimum value for uint64
validation error
%d is less than minimum value for uint
validation error
%d is less than minimum value for Int4
validation error
%d is greater than maximum value for Int4
validation error
%d is greater than maximum value for int4
validation error
%d is less than minimum value for int4
validation error
int4: %w
exception error
uint4: %w
exception error
%d is less than minimum value for int16
validation error
%d is greater than maximum value for int16
validation error
%d is greater than maximum value for uint16
validation error
%d is less than minimum value for Int8
validation error
%d is greater than maximum value for Int8
validation error
int8: %w
error_code error
uint8: %w
error_code error
cannot scan %T
validation error
Received an invalid size for an interval: %w
error_code error
bad interval format
validation error
bad interval format: %q
validation error
bad interval hour format: %s
validation error
bad interval minute format: %s
validation error
bad interval second format: %s
validation error
bad interval decimal format: %s
validation error
cannot scan NULL into %T
validation error
cannot scan into non-pointer or nil destinations %T
validation error
jsonb too short
validation error
unknown jsonb version number %d
validation error
unknown format code: %v
validation error
cannot convert %v to Line
validation error
cannot scan %T
validation error
line: %w
error_code error
invalid length for line: %v
validation error
invalid format for line
validation error
cannot scan %T
validation error
lseg: %w
error_code error
invalid length for lseg: %v
validation error
invalid format for lseg
validation error
unsupported ltree version %d
validation error
unable to encode %v
validation error
multirange cannot contain NULL element
validation error
multirange: %w
error_code error
multirange element %d: %w
error_code error
failed to scan multirange element %d: %w
error_code error
unknown format code %d
validation error
invalid array: %w
error_code error
invalid multirange, expected '{' got %v
validation error
invalid multirange: %w
error_code error
invalid multirange value: %w
error_code error
unexpected trailing data: %v
validation error
cannot convert %v to int64
validation error
cannot convert NaN to integer
validation error
cannot convert %v to integer
validation error
%s is not a number
validation error
cannot scan %T
validation error
numeric incomplete: %w
error_code error
numeric incomplete %v
validation error
invalid digitsRead: %d (this can't happen)
validation error
numeric: %w
error_code error
%v is out of range for int64
validation error
cannot scan %T
validation error
invalid length for Path: %w
error_code error
invalid length for Path with %d points: %w
error_code error
invalid length for Path: %v
validation error
invalid format for Path
validation error
cannot scan NULL into %T
validation error
cannot scan %s (OID %d) in %v format into %T
validation error
cannot scan into non-pointer or nil destinations %T
validation error
PlanScan did not find a plan
validation error
tried to encode %v via encoding to text and scanning but fai
validation error
unable to encode %#v into %s format for %s (OID %d): %w
error_code error
cannot convert to sql.Scanner: cannot find registered type f
validation error
invalid length for point: %v
validation error
invalid format for point
validation error
cannot scan %T
validation error
point: %w
error_code error
cannot scan %T
validation error
invalid length for polygon: %w
error_code error
invalid length for Polygon with %d points: %w
error_code error
invalid length for Polygon: %v
validation error
invalid format for Polygon
validation error
%v cannot be encoded to "char"
validation error
cannot scan NULL into %T
validation error
invalid length for "char": %v
validation error
invalid lower bound: %w
error_code error
missing lower bound, instead got: %v
validation error
invalid lower value: %w
error_code error
missing range separator: %w
error_code error
missing range separator: %v
validation error
invalid upper value: %w
error_code error
missing upper bound: %w
error_code error
missing upper bound, instead got: %v
validation error
unexpected trailing data: %v
validation error
range too short: %v
validation error
empty range: %w
error_code error
range lower bound cannot be NULL
validation error
range upper bound cannot be NULL
validation error
range: %w
error_code error
unknown LowerType: %v
validation error
unknown UpperType: %v
validation error
Lower cannot be NULL unless LowerType is Unbounded
validation error
cannot encode %v as element of range
validation error
failed to encode %v as element of range: %w
error_code error
Upper cannot be NULL unless UpperType is Unbounded
validation error
unknown lower bound type %v
validation error
unknown upper bound type %v
validation error
cannot scan into %v from range element
validation error
cannot scan into %v from range element: %w
validation error
unknown format code %d
validation error
unable to scan OID %d in binary format into %v
validation error
unknown format code %d
validation error
cannot scan %T
validation error
cannot scan NULL into %T
validation error
cannot scan %T
validation error
tid: %w
validation error
invalid length for tid: %v
validation error
invalid format for tid
validation error
cannot scan %T
validation error
time: %w
validation error
cannot decode %v into Time
validation error
cannot scan %T
validation error
cannot unmarshal %s to timestamp with layout %s or %s (%w)
validation error
timestamp: %w
validation error
cannot scan %T
validation error
timestamptz: %w
validation error
cannot scan %T
validation error
tsvector: %w
validation error
invalid tsvector binary format: lexeme %d: %w
validation error
invalid tsvector binary format: lexeme %d positions: %w
validation error
invalid tsvector format: lexeme must start with a single quo
validation error
invalid tsvector format: unterminated quoted lexeme
validation error
invalid tsvector format: unexpected end after backslash
validation error
invalid tsvector format: expected position number
validation error
invalid tsvector format: invalid position number %q
validation error
cannot scan %T
validation error
%d is less than the minimum value for Uint32
validation error
%d is greater than maximum value for Uint32
validation error
%d is less than minimum value for uint32
validation error
%d is greater than maximum value for uint32
validation error
cannot scan NULL into %T
validation error
uint32: %w
validation error
%d is less than the minimum value for Uint64
validation error
cannot scan %T
validation error
%d is less than minimum value for uint64
validation error
cannot scan NULL into %T
validation error
uint64: %w
validation error
cannot parse UUID %v
validation error
cannot scan %T
validation error
invalid length for UUID: %v
validation error
cannot scan NULL into %T
validation error
%d is less than minimum value for Int2
validation error
%d is greater than maximum value for Int2
validation error
%d is less than minimum value for Int4
validation error
%d is greater than maximum value for Int4
validation error
%d is less than minimum value for Int8
validation error
%d is greater than maximum value for Int8
validation error
cannot scan Infinity into *time.Time
validation error
cannot scan -Infinity into *time.Time
validation error
invalid InfinityModifier: %v
validation error
cannot scan Infinity into *time.Time
validation error
cannot scan -Infinity into *time.Time
validation error
invalid InfinityModifier: %v
validation error
cannot scan into *pgtype.DriverBytes from QueryRow
validation error
number of field descriptions must equal number of values, go
validation error
number of field descriptions must equal number of destinatio
validation error
got %d values, but dst struct has only %d fields
validation error
cannot find field %s in returned row
validation error
struct doesn't have corresponding row field %s
validation error
unsupported isolation: %v
validation error
convert field %d failed: %w
exception error
config must be created by ParseConfig
panic error
config must be created by ParseConfig
panic error
config must be created by ParseConfig
panic error
cannot hijack already released or hijacked connection
panic error
watch already in progress
panic error