Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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)

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group