pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix unobvious interaction between -X switch and subdirectory cre
6+ messages / 1 participants
[nested] [flat]

* pgsql: Fix unobvious interaction between -X switch and subdirectory cre
@ 2016-01-07 23:21  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2016-01-07 23:21 UTC (permalink / raw)
  To: pgsql-committers

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 ...)

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b41fb65056076b42d64a8690d61fd73dc648645b

Modified Files
--------------
src/bin/initdb/initdb.c |   37 ++++++++++++++++++++++++-------------
1 file changed, 24 insertions(+), 13 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix unobvious interaction between -X switch and subdirectory cre
@ 2016-01-07 23:21  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2016-01-07 23:21 UTC (permalink / raw)
  To: pgsql-committers

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 ...)

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/506ef1d07f8b51e9799f6856b03a4317297a39cb

Modified Files
--------------
src/bin/initdb/initdb.c |   37 ++++++++++++++++++++++++-------------
1 file changed, 24 insertions(+), 13 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix unobvious interaction between -X switch and subdirectory cre
@ 2016-01-07 23:21  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2016-01-07 23:21 UTC (permalink / raw)
  To: pgsql-committers

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 ...)

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/aa062597c5192fdd758900eb3740a5bd935feda9

Modified Files
--------------
src/bin/initdb/initdb.c |   37 ++++++++++++++++++++++++-------------
1 file changed, 24 insertions(+), 13 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix unobvious interaction between -X switch and subdirectory cre
@ 2016-01-07 23:21  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2016-01-07 23:21 UTC (permalink / raw)
  To: pgsql-committers

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 ...)

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/452064f262fd1c10879311e62181cf96c97dbb09

Modified Files
--------------
src/bin/initdb/initdb.c |   38 +++++++++++++++++++++++++-------------
1 file changed, 25 insertions(+), 13 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix unobvious interaction between -X switch and subdirectory cre
@ 2016-01-07 23:21  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2016-01-07 23:21 UTC (permalink / raw)
  To: pgsql-committers

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 ...)

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/957e1117da128c9615e81823db2ce0bc81f8cf81

Modified Files
--------------
src/bin/initdb/initdb.c |   29 ++++++++++++++++++-----------
1 file changed, 18 insertions(+), 11 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix unobvious interaction between -X switch and subdirectory cre
@ 2016-01-07 23:21  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2016-01-07 23:21 UTC (permalink / raw)
  To: pgsql-committers

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 ...)

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/b05a34739fc1188056931eeec780817bdbb84381

Modified Files
--------------
src/bin/initdb/initdb.c |   29 ++++++++++++++++++-----------
1 file changed, 18 insertions(+), 11 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2016-01-07 23:21 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-01-07 23:21 pgsql: Fix unobvious interaction between -X switch and subdirectory cre Tom Lane <tgl@sss.pgh.pa.us>
2016-01-07 23:21 pgsql: Fix unobvious interaction between -X switch and subdirectory cre Tom Lane <tgl@sss.pgh.pa.us>
2016-01-07 23:21 pgsql: Fix unobvious interaction between -X switch and subdirectory cre Tom Lane <tgl@sss.pgh.pa.us>
2016-01-07 23:21 pgsql: Fix unobvious interaction between -X switch and subdirectory cre Tom Lane <tgl@sss.pgh.pa.us>
2016-01-07 23:21 pgsql: Fix unobvious interaction between -X switch and subdirectory cre Tom Lane <tgl@sss.pgh.pa.us>
2016-01-07 23:21 pgsql: Fix unobvious interaction between -X switch and subdirectory cre Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox