Hello,
there was a very similar post a few days ago:
https://www.postgresql-archive.org/Slow-planning-fast-execution-for-particular-3-table-query-tt6109879.html#none
the root cause was a modification of default_statistics_target
Maybe you are in the same situation ?
or maybe tables have different SET STATISTICS values set ?
Regards
PAscal
--
Sent from: https://www.postgresql-archive.org/PostgreSQL-bugs-f2117394.html