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

Intro to Postgres Planner #5

Open
zhjwpku opened this issue Nov 23, 2024 · 3 comments
Open

Intro to Postgres Planner #5

zhjwpku opened this issue Nov 23, 2024 · 3 comments
Labels
archived The workshop has finished, but you can still post your questions

Comments

@zhjwpku
Copy link
Member

zhjwpku commented Nov 23, 2024

Workshop Title

Melanie Plageman, PGCon 2019, Intro to Postgres Planner

Date: December 2024

Resources

@zhjwpku zhjwpku added the scheduled This will be the workshop for next month label Nov 23, 2024
@zhjwpku
Copy link
Member Author

zhjwpku commented Nov 23, 2024

Frédéric: I watch Melnanie's presentation for the next workshop and look at her pointers. I'm not too sure I understand what a path is in planner's jargon. Is it a simplified representation of a potential plan whole tree? Or could it be a subtree?

Robert Haas: Subtree.
You can think if a Path as the precursor to a Plan. We have Plan nodes (like SeqScan and IndexScan) and then we have path nodes (like SeqPath and IndexPath) from which the corresponding Plan nodes are constructed.
A Path takes less work to construct than a Plan, so initially we make Paths, and then the losers are thrown away and the winning Path is turned into a Plan.

@zhjwpku
Copy link
Member Author

zhjwpku commented Nov 23, 2024

Robert's talk that discussed the Plan data structure: What's in a Plan -- PGCon 2018 & Slides

@zhjwpku
Copy link
Member Author

zhjwpku commented Nov 24, 2024

Guidelines for new Optimizations

  1. Does it always retain semantic correctness?
  2. Does it inhibit downstream optimizations?
  3. Is the improvement in execution time worth the cost in planning time?
  4. Is the complexity cost commensurate the performace benefit?

@zhjwpku zhjwpku added ongoing This is the workshop for current month and removed scheduled This will be the workshop for next month labels Dec 7, 2024
@zhjwpku zhjwpku added archived The workshop has finished, but you can still post your questions and removed ongoing This is the workshop for current month labels Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
archived The workshop has finished, but you can still post your questions
Projects
None yet
Development

No branches or pull requests

1 participant