• Tom Lane's avatar
    Fix pg_resetxlog to use correct path to postmaster.pid. · 455b8887
    Tom Lane authored
    Since we've already chdir'd into the data directory, the file should
    be referenced as just "postmaster.pid", without prefixing the directory
    path.  This is harmless in the normal case where an absolute PGDATA path
    is used, but quite dangerous if a relative path is specified, since the
    program might then fail to notice an active postmaster.
    
    Reported by Hari Babu.  This got broken in my commit
    eb5949d1, so patch all active versions.
    455b8887
pg_resetxlog.c 27.7 KB