From: David Gauchard <gauchard@laas.fr>
To: Andres Freund <andres@2ndquadrant.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #11882: make HAVE_WORKING_LINK an option
Date: Wed, 5 Nov 2014 17:52:26 +0100
Message-ID: <20141105165226.GD3344@laas.fr> (raw)
In-Reply-To: <20141105163514.GY28295@alap3.anarazel.de>
References: <20141105144448.26931.18746@wrigleys.postgresql.org>
<20141105163514.GY28295@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On mer., nov. 05, 2014 at 05:35:14 +0100, Andres Freund wrote:
> 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?
Something surely not serious enough for you:
I was working on a fuse filesystem which I test using the
phoronix test suite, which uses postgresql for benchmarking, when
I ran into this bug (hard link is not always implementable).
I understand that this is not consistent enough for making a patch.
However at least a ./configure option (not in the manual config
file) would be welcome for automating processes. This would
not harm regular postgresql performances (because of no runtime
check for an option) and would be explicit.
>
> > 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.
I agree.
Is a ./configure option acceptable ?
I can provide a patch for that if it be welcome.
Otherwise you tell me and I stay around my playground :)
david
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: gauchard@laas.fr, andres@2ndquadrant.com
Subject: Re: BUG #11882: make HAVE_WORKING_LINK an option
In-Reply-To: <20141105165226.GD3344@laas.fr>
References: <20141105144448.26931.18746@wrigleys.postgresql.org> <20141105163514.GY28295@alap3.anarazel.de> <20141105165226.GD3344@laas.fr>
* 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