On Wed, 29 May 2024 at 12:53, Tom Lane <tgl@xxxxxxxxxxxxx> wrote: > It would be interesting to see a non-artificial example that took > into account when the last auto-vacuum and auto-analyze really > happened, so we could see if there's any less-fragile way of > dealing with this situation. I think we need to find a way to give some additional preference to using indexes with more keys matching to quals. David