Ultimate

X_DB_STATEMENT_BOUND_INVALID

Means

a statement bound is not a whole positive number of ms under the role bound

Typical cause

withStatementTimeout(ms) or query({ timeoutMs }) asked for 0, a fraction, NaN, or more than the connected role statement_timeout — a read cannot extend what the role was sized for

Fix

query({ timeoutMs: 500 }) # a whole number of ms below the role bound, read with: psql "$DATABASE_URL" -c 'show statement_timeout'

Listed under Entity and database

This page as markdown