Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cardinality feedback #5

Closed
legrandlegrand opened this issue Nov 18, 2017 · 5 comments
Closed

Cardinality feedback #5

legrandlegrand opened this issue Nov 18, 2017 · 5 comments

Comments

@legrandlegrand
Copy link

Hello,

Thanks for this very usefull feature in Postgresql !
I'm an old Oracle DBA, and I like it very much ;o)

Question regarding wrong estimates and Oracle Cardinality Feedback
as discussed in https://www.postgresql.org/message-id/flat/1510775864811-0.post%40n3.nabble.com#1510775864811-0.post@n3.nabble.com

do you think that it would be possible to write an extension like auto_explain (or other)
that would be able to catch wrong estimates / real data fetched at the end (success, error, cancel) of each query and add a row in hint_plan.hints table with the proper Hint for row number correction ?

This hint in hint_plan.hints would be available for next executions.
Regards
PAscal

@yamatattsu
Copy link
Member

yamatattsu commented Nov 19, 2017 via email

@legrandlegrand
Copy link
Author

Thanks a lot for all thoses informations.

rem: It seems that multivariate statistitics doesn't fix (yet) the cross-table selectivity problem.

Yes I'm interested in your tool, mainly for:

  • understanding how to query pg_store_plan to get estimates rows vs actual rows,
  • identifiy rules for creating hints regarding those estimates mistakes,
  • ...

Regards
PAscal

@legrandlegrand
Copy link
Author

it seems that
https://github.com/postgrespro/aqo
proposes something similar

Regards
PAscal

@yamatattsu
Copy link
Member

yamatattsu commented Jul 18, 2018 via email

@legrandlegrand
Copy link
Author

It seems you tool is alive now
https://github.com/ossc-db/pg_plan_advsr/commits/master

closing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants