postgresql/src/bin
Tom Lane 33b054bc79 Use plain mkdir() not pg_mkdir_p() to create subdirectories of PGDATA.
When we're creating subdirectories of PGDATA during initdb, we know darn
well that the parent directory exists (or should exist) and that the new
subdirectory doesn't (or shouldn't).  There is therefore no need to use
anything more complicated than mkdir().  Using pg_mkdir_p() just opens us
up to unexpected failure modes, such as the one exhibited in bug #13853
from Nuri Boardman.  It's not very clear why pg_mkdir_p() went wrong there,
but it is clear that we didn't need to be trying to create parent
directories in the first place.  We're not even saving any code, as proven
by the fact that this patch nets out at minus five lines.

Since this is a response to a field bug report, back-patch to all branches.
2016-01-07 15:22:24 -05:00
..
initdb Use plain mkdir() not pg_mkdir_p() to create subdirectories of PGDATA. 2016-01-07 15:22:24 -05:00
pg_archivecleanup Make WAL-related utilities handle .partial WAL files properly. 2015-07-03 11:53:58 +09:00
pg_basebackup Make pg_receivexlog silent with 9.3 and older servers 2016-01-05 17:25:12 -03:00
pg_config Update copyright for 2016 2016-01-02 13:33:40 -05:00
pg_controldata Update copyright for 2016 2016-01-02 13:33:40 -05:00
pg_ctl Windows: Make pg_ctl reliably detect service status 2016-01-07 11:59:08 -03:00
pg_dump Teach pg_dump to quote reloption values safely. 2016-01-02 19:04:45 -05:00
pg_resetxlog Update copyright for 2016 2016-01-02 13:33:40 -05:00
pg_rewind Fix typo in comment. 2016-01-04 10:12:44 -05:00
pg_test_fsync Move pg_test_fsync from contrib/ to src/bin/ 2015-04-19 22:20:49 -04:00
pg_test_timing Move pg_test_timing from contrib/ to src/bin/ 2015-04-20 21:30:12 -04:00
pg_upgrade Update copyright for 2016 2016-01-02 13:33:40 -05:00
pg_xlogdump Sort $(wildcard) output where needed for reproducible build output. 2016-01-05 15:47:05 -05:00
pgbench Update copyright for 2016 2016-01-02 13:33:40 -05:00
pgevent Update copyright for 2016 2016-01-02 13:33:40 -05:00
psql Convert psql's tab completion for backslash commands to the new style. 2016-01-05 12:00:13 -05:00
scripts Update copyright for 2016 2016-01-02 13:33:40 -05:00
Makefile Update copyright for 2016 2016-01-02 13:33:40 -05:00