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/4573~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/4573
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Nov 5, 2025

  1. Fix pg_ctl on Windows to reliably detect already-running postmaster.

    The previous implementation invoked postgres.exe via cmd.exe, which meant
    pg_ctl got the PID of the shell wrapper rather than the actual postmaster
    process.  This caused problems in wait_for_postmaster_start(), which tries
    to verify that the PID in postmaster.pid matches the one we started.  The
    mismatch led to a timing window where pg_ctl could incorrectly report
    success when attempting to start an already-running cluster.
    
    Fix by replacing the cmd.exe wrapper with a direct CreateProcess() call.
    This gives us the real postgres.exe PID immediately, eliminating the
    need for process tree walking or other heuristics to find the actual
    postmaster.  We handle I/O redirection using Windows handle-based APIs
    instead of shell syntax, which is more reliable anyway.
    dbgreen authored and Commitfest Bot committed Nov 5, 2025
    Configuration menu
    Copy the full SHA
    041c449 View commit details
    Browse the repository at this point in the history
  2. [CF 4573] v2 - pg_ctl start may return 0 even if the postmaster has b…

    …een already started on Windows
    
    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/4573
    
    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/[email protected]
    Author(s): Kyotaro Horiguchi
    Commitfest Bot committed Nov 5, 2025
    Configuration menu
    Copy the full SHA
    56b6919 View commit details
    Browse the repository at this point in the history
Loading