Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cf/5501~1
Choose a base ref
...
head repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cf/5501
Choose a head ref
  • 2 commits
  • 18 files changed
  • 2 contributors

Commits on Feb 24, 2025

  1. EXPLAIN: Always use two fractional digits for row counts.

    Commit ddb17e3 attempted to avoid
    confusing users by displaying digits after the decimal point only when
    nloops > 1, since it's impossible to have a fraction row count after a
    single iteration. However, this made the regression tests unstable since
    parallal queries will have nloops>1 for all nodes below the Gather or
    Gather Merge in normal cases, but if the workers don't start in time and
    the leader finishes all the work, they will suddenly have nloops==1,
    making it unpredictable whether the digits after the decimal point would
    be displayed or not.
    
    Various fixes are possible here. For example, it has previously been
    proposed that we should try to display the digits after the decimal
    point only if rows/nloops is an integer, but rows is a float so it's not
    theoretically an exact quantity -- precision could be lost in extreme
    cases. It has also been proposed that we should try to display the
    digits after the decimal point only if we're under some sort of
    construct that could potentially cause looping regardless of whether it
    actually does. While such ideas are not without merit, this patch adopts
    the much simpler solution of always display two decimal digits. If that
    approach stands up to scrutiny from the buildfarm and human users, it
    spares us the trouble of doing anything more complex; if not, we can
    reassess.
    
    This commit incidentally reverts 44cbba9,
    which should no longer be needed.
    robertmhaas authored and Commitfest Bot committed Feb 24, 2025
    Configuration menu
    Copy the full SHA
    1a1714b View commit details
    Browse the repository at this point in the history
  2. [CF 5501] EXPLAIN ANALYZE rows=%.f

    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5501
    
    The branch will be overwritten each time a new patch version is posted to
    the thread, and also periodically to check for bitrot caused by changes
    on the master branch.
    
    Patch(es): https://www.postgresql.org/message-id/CA+TgmoazzVHn8sFOMFAEwoqBTDxKT45D7mvkyeHgqtoD2cn58Q@mail.gmail.com
    Author(s): Ilia Evdokimov
    Commitfest Bot committed Feb 24, 2025
    Configuration menu
    Copy the full SHA
    ed8cba1 View commit details
    Browse the repository at this point in the history
Loading