Re: Hash Right join and seq scan - Mailing list pgsql-performance

From Justin Pryzby
Subject Re: Hash Right join and seq scan
Date
Msg-id ZotOcEv9R2bigCqX@pryzbyj2023
Whole thread Raw
In response to Re: Hash Right join and seq scan  (James Pang <jamespang886@gmail.com>)
List pgsql-performance
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.



pgsql-performance by date:

Previous
From: James Pang
Date:
Subject: Re: Hash Right join and seq scan
Next
From: Andrei Lepikhov
Date:
Subject: Re: Low performance between datacenters