]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix unobvious interaction between -X switch and subdirectory creation.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Jan 2016 23:20:58 +0000 (18:20 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Jan 2016 23:20:58 +0000 (18:20 -0500)
commitb05a34739fc1188056931eeec780817bdbb84381
tree8029158394bd7859f52654ceb2c938e83a860642
parent099541e8f1988cd8c1ae1a00ded015370fbc61b2
Fix unobvious interaction between -X switch and subdirectory creation.

Turns out the only reason initdb -X worked is that pg_mkdir_p won't
whine if you point it at something that's a symlink to a directory.
Otherwise, the attempt to create pg_xlog/ just like all the other
subdirectories would have failed.  Let's be a little more explicit
about what's happening.  Oversight in my patch for bug #13853
(mea culpa for not testing -X ...)
src/bin/initdb/initdb.c