pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@2ndquadrant.com>
To: gauchard@laas.fr
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #11882: make HAVE_WORKING_LINK an option
Date: Wed, 5 Nov 2014 17:35:14 +0100
Message-ID: <20141105163514.GY28295@alap3.anarazel.de> (raw)
In-Reply-To: <20141105144448.26931.18746@wrigleys.postgresql.org>
References: <20141105144448.26931.18746@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Hi,

On 2014-11-05 14:44:48 +0000, gauchard@laas.fr wrote:
> This define "HAVE_WORKING_LINK" should not be always enabled. On systems
> that support (and surely use) hard links FS, postgresql might be used on a
> subFS not supporting it.
> In the sources, the comment is (from git's
> src/backend/access/transam/xlog.c):

Those FS's really shouldn't be used for a database though. Are you
thinking of something concrete?

> 3373      * Prefer link() to rename() here just to be really sure that we
> don't
> 3374      * overwrite an existing logfile.  However, there shouldn't be one,
> so
> 3375      * rename() is an acceptable substitute except for the truly
> paranoid.

> My thinking is that you may add a '--paranoid' option to use hardlink
> instead of rename, or, at least, an option (--relax ?) to disable this
> behaviour and use a regular rename() instead.

I don't think this is really warranted by anything.

Greetings,

Andres Freund

-- 
 Andres Freund	                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


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



view thread (4+ messages)  latest in thread

Message-ID: <20141105163514.GY28295@alap3.anarazel.de>
Permalink:  ../20141105163514.GY28295@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20141105163514.GY28295@alap3.anarazel.de

 · 

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-bugs@postgresql.org
  Cc: andres@2ndquadrant.com, gauchard@laas.fr
  Subject: Re: BUG #11882: make HAVE_WORKING_LINK an option
  In-Reply-To: <20141105163514.GY28295@alap3.anarazel.de>
  References: <20141105144448.26931.18746@wrigleys.postgresql.org> <20141105163514.GY28295@alap3.anarazel.de>

* 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