A couple people have mentioned the query plan changing in the middle of the night. Is the scenario a single query getting executed two different ways by the same running system? Or is it from upgrading to a new version of PostgreSQL and hitting different behavior? If it's the first scenario, would using prepared statements help somewhat with avoiding unexpected changes?
// Edit: Sorry for the naive question. I see that other people are saying that is the first one.
// Edit: Sorry for the naive question. I see that other people are saying that is the first one.