pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Be more conservative about removing tablespace "symlinks".
Date: Fri, 26 Jun 2015 20:02:02 +0000
Message-ID: <E1Z8Zp4-0002v8-Ur@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Be more conservative about removing tablespace "symlinks".

Don't apply rmtree(), which will gleefully remove an entire subtree,
and don't even apply unlink() unless it's symlink or a directory,
the only things that we expect to find.

Amit Kapila, with minor tweaks by me, per extensive discussions
involving Andrew Dunstan, Fujii Masao, and Heikki Linnakangas,
at least some of whom also reviewed the code.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8f15f74a44f68f9cb3a644786d3c732a5eeb237a

Modified Files
--------------
src/backend/access/transam/xlog.c |   24 ++--------
src/backend/commands/tablespace.c |   89 +++++++++++++++++++++++++++----------
src/include/commands/tablespace.h |    1 +
3 files changed, 69 insertions(+), 45 deletions(-)


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


Message-ID: <E1Z8Zp4-0002v8-Ur@gemulon.postgresql.org>
Permalink:  ../E1Z8Zp4-0002v8-Ur@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1Z8Zp4-0002v8-Ur@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Be more conservative about removing tablespace "symlinks".
  In-Reply-To: <E1Z8Zp4-0002v8-Ur@gemulon.postgresql.org>
  References: <E1Z8Zp4-0002v8-Ur@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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