Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XmWyT-0007Ko-0b for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Nov 2014 00:00:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XmWyS-0003pF-JD for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Nov 2014 00:00:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xm3ow-0004sN-Ng for pgsql-bugs@postgresql.org; Wed, 05 Nov 2014 16:52:34 +0000 Received: from laas.laas.fr ([2001:660:6602:4::2]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xm3os-0004XW-FA for pgsql-bugs@postgresql.org; Wed, 05 Nov 2014 16:52:33 +0000 Received: from pumpkin.laas.fr (pumpkin.laas.fr [IPv6:2001:660:6602:4:219:b9ff:fe29:55cf]) by laas.laas.fr (8.14.8/8.14.6) with ESMTP id sA5GqQAh011450 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 5 Nov 2014 17:52:26 +0100 (CET) Received: from pumpkin.laas.fr (localhost [127.0.0.1]) by pumpkin.laas.fr (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id sA5GqQQR009416; Wed, 5 Nov 2014 17:52:26 +0100 Received: (from gauchard@localhost) by pumpkin.laas.fr (8.14.4/8.14.4/Submit) id sA5GqQjK009415; Wed, 5 Nov 2014 17:52:26 +0100 Date: Wed, 5 Nov 2014 17:52:26 +0100 From: David Gauchard To: Andres Freund Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #11882: make HAVE_WORKING_LINK an option Message-ID: <20141105165226.GD3344@laas.fr> References: <20141105144448.26931.18746@wrigleys.postgresql.org> <20141105163514.GY28295@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141105163514.GY28295@alap3.anarazel.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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