constant CACHED_PLAN_HEURISTIC
Ruby on Rails 6.0.6
Since v5.2.8.1 Last seen in v6.0.6Available in: v5.2.8.1 v6.0.6
Annoyingly, the code for prepared statements whose return value may have changed is FEATURE_NOT_SUPPORTED.
This covers various different error types so we need to do additional work to classify the exception definitively as a ActiveRecord::PreparedStatementCacheExpired
Check here for more details: git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/backend/utils/cache/plancache.c#l573