Skip to main content

is_stale_plan

Function is_stale_plan 

Source
pub fn is_stale_plan(error: &Error) -> bool
Expand description

Whether error is Postgres refusing a statement this connection prepared before a migration changed what it returns: SQLSTATE 0A000 with “cached plan must not change result type”. Each pooled connection that cached the statement fails so once, and a fresh connection does not.