ActiveRecord::PreparedStatementCacheExpired

Raised when Postgres returns 'cached plan must not change result type' and we cannot retry gracefully (e.g. inside a transaction)