Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xm3Yq-0000xC-Vn for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Nov 2014 16:35:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xm3Yp-00026z-CF for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Nov 2014 16:35:55 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xm3YN-0001PA-8O for pgsql-bugs@postgresql.org; Wed, 05 Nov 2014 16:35:27 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xm3YE-0004vC-B3 for pgsql-bugs@postgresql.org; Wed, 05 Nov 2014 16:35:20 +0000 Received: from intern.anarazel.de (ip-80-113-16-26.ip.prioritytelecom.net [80.113.16.26]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id B31B3460001; Wed, 5 Nov 2014 17:35:14 +0100 (CET) Date: Wed, 5 Nov 2014 17:35:14 +0100 From: Andres Freund To: gauchard@laas.fr Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #11882: make HAVE_WORKING_LINK an option Message-ID: <20141105163514.GY28295@alap3.anarazel.de> References: <20141105144448.26931.18746@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141105144448.26931.18746@wrigleys.postgresql.org> X-Pg-Spam-Score: -2.6 (--) 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 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