Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ywuth-0004CJ-Gi for pgsql-hackers@arkaria.postgresql.org; Mon, 25 May 2015 16:06:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Ywuth-00047F-10 for pgsql-hackers@arkaria.postgresql.org; Mon, 25 May 2015 16:06:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Ywutc-00042g-Sl; Mon, 25 May 2015 16:06:32 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1YwutY-0007G6-Ds; Mon, 25 May 2015 16:06:32 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 758055F79D; Mon, 25 May 2015 12:06:26 -0400 (EDT) Date: Mon, 25 May 2015 12:06:26 -0400 From: Stephen Frost To: Andres Freund Cc: Bruce Momjian , Greg Stark , Magnus Hagander , Robert Haas , pgsql-core , Andrew Gierth , PostgreSQL-development Subject: Re: [CORE] [BUGS] BUG #13350: blindly fsyncing data dir considered harmful Message-ID: <20150525160626.GO26667@tamriel.snowman.net> References: <20150525142657.4686.35151@wrigleys.postgresql.org> <20150525151243.GM26667@tamriel.snowman.net> <20150525155233.GD3908@momjian.us> <1B40A9EB-4DD1-4C38-B8FB-3FB0CDF5E3C0@anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lQZUhpxrYmQgHmHV" Content-Disposition: inline In-Reply-To: <1B40A9EB-4DD1-4C38-B8FB-3FB0CDF5E3C0@anarazel.de> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-46-generic (x86_64) X-Uptime: 12:05:32 up 66 days, 21:54, 15 users, load average: 0.08, 0.05, 0.05 User-Agent: Mutt/1.5.21 (2010-09-15) 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 --lQZUhpxrYmQgHmHV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Andres Freund (andres@anarazel.de) wrote: > On May 25, 2015 8:52:33 AM PDT, Bruce Momjian wrote: > >On Mon, May 25, 2015 at 04:37:59PM +0100, Greg Stark wrote: > >> What exactly is failing? > >>=20 > >> 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. >=20 > Now there's already a thread on jackets about this. Agreed- we should probably keep the discussion about fixing it (or addressing the original issue in some way that doesn't run into this issue) on the other thread. This is simply to point out the user impact and that we need to fix it quickly. Thanks! Stephen --lQZUhpxrYmQgHmHV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJVY0iCAAoJEO1sijiDR2RVMggQAJ4Y11B0jbj+y6N5UcKSOJnM J7pUCTkmAsVj/GEI27NQb8+uwSE0uJwY2/nz1yYEG23OexurSsNwpbgis2JRzYNO l3Lr7WoC4xb6+KEQhdaSBXAFMYWaNTNnT74mGhJKuSUptt8TvRcob70f8Pl7P+Y4 OfK+YMevaiJ3xH1/ceCpSR4sKtEIYqaFjBBH+k+BFS6l3esihb1b/r8T/QSYwHLT xRZ3S4noPa1Qgb9Uj207CJcEmI0hy+oZELJN+x5HYMoNH6HxlzI2AW4ZZkkGi20X isdzItRSD2tFbKxB67BuDRpa6lL0pqI1Pjs5D460ap04raDUi687dxkIpKb8V7P6 2eI096Mf2ri1C1c9H5VFj04v9XZYJ08cR81iWRDUTkzvGLAT95QCBdp3QuuRbLh4 GO5dMf8KIpsvu5OSpmdLJPv3zy0FIWaAODgB9WU9jVzuPdHvegi1arfCv9zI4VDL sJAnplvzKAen0X2VjAPrg3IEflKSYmcygCphyh5d8l9pWNB2yvhgfwO/sCWdbb1+ riY3NZWkCa7eL89ZACx3mCH4b6PY9n4QVfyxLZ03GVQ3Yl83KUggx8KY3qON5qT9 G9lAaHhhStpiNNBnzdqrYUpskudn4JVk+GDvdMkB5bzvMQCTq0TEEmZazcZE+/c9 /72GiRBCdpllef8oGAAs =wCBz -----END PGP SIGNATURE----- --lQZUhpxrYmQgHmHV--