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

release-24.3: sql: fix edge case causing suboptimal generic query plans #135278

Merged
merged 1 commit into from
Nov 15, 2024

Commits on Nov 14, 2024

  1. sql: fix edge case causing suboptimal generic query plans

    This commit fixes a bug that caused suboptimal generic query plans to be
    planned under all of the following conditions:
    
    1. `plan_cache_mode` was set to `force_custom_plan` (the default).
    2. A query was prepared and an ideal generic query plan was selected
       (i.e., it used the placeholder fast path).
    3. New stats were collected, making the original plan stale and
       increasing the estimated row count of the root expression beyond
       `maxRowCountForPlaceholderFastPath` (10).
    4. The prepared query was re-executed.
    
    Fixes #135151
    
    There is no release note because this bug does not exist in any
    releases.
    
    Release note: None
    mgartner committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    1c2113b View commit details
    Browse the repository at this point in the history