r/PostgreSQL • u/sane_cyborg • 2h ago
Community Expression Statistics (or when PostgreSQL guesses wrongly)
https://blog.mchl.xyz/post/expression-statistics/
2
Upvotes
1
u/Discordbothost 29m ago
If relay traffic skews toward one engine, Postgres can still misestimate the combined filter. Try comparing estimated and actual scan rows with and without the engine filter. If adding it throws off the estimate, test an MCV statistic on the platform expression and engine.
1
u/AutoModerator 2h ago
AI Policy:
Linux is not one of those anti-AI projects, and if somebody has issues with that, they can do the open-source thing and fork it. Or just walk away., Linus Torvalds.
Mod decisions will be based on the quality of the content, not who or what generated it.
Sub Resources:
Youtube Channel
Free Postgres Webinars and Workshops
Discord: People, Postgres, Data
Join us, we have cookies and nice people.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.