Skip to main content

MAX_STATEMENT_PARAMS

Constant MAX_STATEMENT_PARAMS 

Source
const MAX_STATEMENT_PARAMS: usize = _; // 32_767usize
Expand description

Maximum number of bind parameters of a single statement. PostgreSQL itself allows 65535, but the client encodes the parameter count of a Bind message as i16, so a larger batch fails before ever reaching the server.