pgsql: Adjust mkdir_p to do stat() before trying mkdir().

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Adjust mkdir_p to do stat() before trying mkdir().
Date: 2005-01-28 00:35:25
Message-ID: 20050128003525.81B1F3A614F@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Adjust mkdir_p to do stat() before trying mkdir(). Avoids problems on
Solaris and should be a little faster anyway, since in most scenarios
all but perhaps the last path component will already exist.

Modified Files:
--------------
pgsql/src/bin/initdb:
initdb.c (r1.73 -> r1.74)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/bin/initdb/initdb.c.diff?r1=1.73&r2=1.74)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2005-01-28 00:36:35 pgsql: Adjust mkdir_p to do stat() before trying mkdir().
Previous Message Tom Lane 2005-01-27 23:43:50 pgsql: Check that aggregate creator has the right to execute the