pgsql: Install some simple defenses in postmaster startup to help ensure

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Install some simple defenses in postmaster startup to help ensure
Date: 2009-05-02 22:02:37
Message-ID: 20090502220237.CEC1575407B@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Install some simple defenses in postmaster startup to help ensure a useful
error message if the installation directory layout is messed up (or at least,
something more useful than the behavior exhibited in bug #4787). During
postmaster startup, check that get_pkglib_path resolves as a readable
directory; and if ParseTzFile() fails to open the expected timezone
abbreviation file, check the possibility that the directory is missing rather
than just the specified file. In case of either failure, issue a hint
suggesting that the installation is broken. These two checks cover the lib/
and share/ trees of a full installation, which should take care of most
scenarios where a sysadmin decides to get cute.

Modified Files:
--------------
pgsql/src/backend/postmaster:
postmaster.c (r1.577 -> r1.578)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/postmaster.c?r1=1.577&r2=1.578)
pgsql/src/backend/utils/misc:
tzparser.c (r1.7 -> r1.8)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/misc/tzparser.c?r1=1.7&r2=1.8)

Browse pgsql-committers by date

  From Date Subject
Next Message User Bmomjian 2009-05-02 22:45:30 pg-migrator - src: Properly name loop variables.
Previous Message Tom Lane 2009-05-02 20:28:17 pgsql: We don't need major_release_split any more.