pgsql: Install some simple defenses in postmaster startup to help ensure - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Install some simple defenses in postmaster startup to help ensure
Date
Msg-id 20090502220237.CEC1575407B@cvs.postgresql.org
Whole thread Raw
List 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)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: We don't need major_release_split any more.
Next
From: bmomjian@pgfoundry.org (User Bmomjian)
Date:
Subject: pg-migrator - src: Properly name loop variables.