Is the query fast with some bind parameters but slow with others? If so, it'd be better to show an explain with 'fast' and 'slow' bind params, rather than the same bind params with enable_*=off. Or is the change because autoanalyze runs on some table and changes the statistics enough to change the plan ? Investigate by setting log_autovacuum_min_duration=0 or by checking pg_stat_all_tables.last_{auto,}{vacuum,analyze}. Maybe your llid/hhid are correlated, and you should CREATE STATISTICS. Or maybe the answer will be to increase the stats target.