Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YwugG-0003J8-TM for pgsql-hackers@arkaria.postgresql.org; Mon, 25 May 2015 15:52:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YwugG-0008TF-Aa for pgsql-hackers@arkaria.postgresql.org; Mon, 25 May 2015 15:52:44 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YwugF-0008T5-1M; Mon, 25 May 2015 15:52:43 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1YwugC-0008B8-14; Mon, 25 May 2015 15:52:41 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1Ywug5-0007K6-6J; Mon, 25 May 2015 11:52:33 -0400 Date: Mon, 25 May 2015 11:52:33 -0400 From: Bruce Momjian To: Greg Stark Cc: Magnus Hagander , Stephen Frost , Robert Haas , pgsql-core , Andrew Gierth , PostgreSQL-development Subject: Re: [CORE] [BUGS] BUG #13350: blindly fsyncing data dir considered harmful Message-ID: <20150525155233.GD3908@momjian.us> References: <20150525142657.4686.35151@wrigleys.postgresql.org> <20150525151243.GM26667@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Mon, May 25, 2015 at 04:37:59PM +0100, Greg Stark wrote: > What exactly is failing? > > Is it that fsync is returning -1 ? Should we just ignore errors from > fsync if it happens in this stage? That might be safer than > determining which files should or shouldn't be fsynced. Interesting idea. We could skip fsync -1 failures only for symbolic links. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers