News for hackers. Stuff that matters.
Re:Debugging the Postgres query planner (2018) by darksaints on Thursday September 15, 2022 @10:41AM (#32852774)
I don't think that's really necessary, and it could make the predictability problem much worse. What is really needed is a better cost model. Query planners fail only when their statistics and cost estimates do not reflect reality. What we need are statistical distributions for costs, with those distributions updating after every query. And any time you prepare a statement, it should be looking for patterns to create better column/row statistics and indexing schemes.

There are no comments on this comment yet.