Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ywu3e-0001Hm-Nv for pgsql-hackers@arkaria.postgresql.org; Mon, 25 May 2015 15:12:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Ywu3e-0003zy-8k for pgsql-hackers@arkaria.postgresql.org; Mon, 25 May 2015 15:12:50 +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 1Ywu3c-0003zO-6N; Mon, 25 May 2015 15:12:48 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Ywu3Z-0007PS-8E; Mon, 25 May 2015 15:12:46 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 9D8645F79D; Mon, 25 May 2015 11:12:43 -0400 (EDT) Date: Mon, 25 May 2015 11:12:43 -0400 From: Stephen Frost To: pgsql-core@postgresql.org Cc: Robert Haas , pgsql-hackers@postgresql.org, andrew@tao11.riddles.org.uk Subject: Re: [BUGS] BUG #13350: blindly fsyncing data dir considered harmful Message-ID: <20150525151243.GM26667@tamriel.snowman.net> References: <20150525142657.4686.35151@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Xivtt9Q8Gazzyu1i" Content-Disposition: inline In-Reply-To: <20150525142657.4686.35151@wrigleys.postgresql.org> 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: 11:04:05 up 66 days, 20:52, 14 users, load average: 0.07, 0.09, 0.06 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 --Xivtt9Q8Gazzyu1i Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable All, (sending to -core to request a release) * andrew@tao11.riddles.org.uk (andrew@tao11.riddles.org.uk) wrote: > Operating system: Debian (and probably others) > The addition of a recursive fsync of the data dir on startup (in the abse= nce > of a clean shutdown) causes startup to fail if the data dir contains > symlinks to files which the postgres user can't write to. >=20 > This is the standard configuration for many SSL-enabled setups, including > the standard debian packaging defaults. Accordingly, crash recovery now > ALWAYS fails on such systems without manual intervention. Andrew did a great job summarizing the problem, don't know that there's much to add there. This was back-patched all the way and released with the latest round of minor releases, and given that it means crash recovery fails for a large number of deployed systems, I think we need to fix (or revert) the recursive fsync change (d8ac77ab178ddb2ae043b8c463cd30c031e793d0 and related) and do new releases very shortly. Thanks! Stephen --Xivtt9Q8Gazzyu1i Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJVYzvrAAoJEO1sijiDR2RVobAP/3WakJPl561grA6ZJu6hdG68 pir7nXpzN1ZhCAnPz9OOJ6eeyTXfLoFJ2rUkLW6n3cSSz7KS57LHNe9kUB2qlXZD dB4p69gDBOelQqxofPeZggE7/KXZrZ2oZumM2VXTg9ujQumAY8RM/XZQqae6SSgF TBFZIUVbRvSrLt50UG9qBOUdA7lnYnEN7ku5hYDYKmvm/F+vGOKKyFRVBcJvdV1k 6PHrWkA/HRTqQ35RJkLwNd9M52Y2um7DSjogvHLg3ElbcbUS3JQAWuNtIN1hpRSv AxLO5WYloLs6FawVM++U/pNVncBNsnQO+GUss7bT39NlSzKzvZ57jPrGw93tVAcV CpGvqV0mtnj05yT8Bp/lc2fSoJo1gcdw+EGND9JyQ1bzDtfuW29drdAFpXb2w6PC XGTnqnDUzHb1UHI2aYyeQ9ei9H2PKDU5hmWAdt/+dFn4HkooXeuwcTitkknMiHQE 2CA9gOgUxUKwZFeTBgDrUh/Z+s5TlZsSeLsk2QdqI6Gez+SOrAvXxQwpe3tzYEPu Ntjj3wfpcEJ/as+tV1vDpiuvSNitEWmA2BIwxoRo9Vpq7seyLvnQTywYbWUuEiNn 0aLQrDbTtA/6wC0sJSHZPIAqNqe2v9vEV0lg/BvkK+RaCS8bajshzAOb64vuV0zM iya2nciU+AfGWGapfXb2 =EB8g -----END PGP SIGNATURE----- --Xivtt9Q8Gazzyu1i--