A common cause of that is, if you do an upgrade and postgress, it doesn't bring along your statistics. And it might be that analyze hasn't run in a long time. For whatever reason, i see the data has dramatically changed since it last took stat towards using outof date stats exacty. O, but then if there's a learn more link here as well. With itw'll go into quite a few more things you can do. So if it's not analyzed, there's a bunch of other ways you can teach postgress or ask post gress to gather more statistics.