pgsql: pg_upgrade: detect stale postmaster.pid lock files

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: pg_upgrade: detect stale postmaster.pid lock files
Date: 2013-01-24 20:20:50
Message-ID: E1TyTI2-0004b2-Gb@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_upgrade: detect stale postmaster.pid lock files

If the postmaster.pid lock file exists, try starting/stopping the
cluster to check if the lock file is valid.

Per request from Tom.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a9ceaa53be766a324e41953a78e8bd9fa408edf6

Modified Files
--------------
contrib/pg_upgrade/check.c | 11 ++++-----
contrib/pg_upgrade/exec.c | 10 ++-----
contrib/pg_upgrade/pg_upgrade.c | 48 +++++++++++++++++++++++++++++---------
contrib/pg_upgrade/pg_upgrade.h | 6 ++--
contrib/pg_upgrade/server.c | 9 +++++-
5 files changed, 54 insertions(+), 30 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2013-01-24 21:02:00 pgsql: Use correct output device for Windows prompts.
Previous Message Alvaro Herrera 2013-01-24 20:19:15 pgsql: Use the catversion to distinguish old/new clusters