Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eC5N2-0005wU-51 for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Nov 2017 15:00:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eC5N1-0004DX-O0 for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Nov 2017 15:00:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eC5MJ-0002th-88 for pgsql-bugs@postgresql.org; Tue, 07 Nov 2017 15:00:11 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eC5MB-0005KU-VL for pgsql-bugs@postgresql.org; Tue, 07 Nov 2017 15:00:10 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 237B35F795; Tue, 7 Nov 2017 10:00:03 -0500 (EST) Date: Tue, 7 Nov 2017 10:00:03 -0500 From: Stephen Frost To: Tom Lane Cc: Raphael Hertzog , Alvaro Herrera , pgsql-bugs@postgresql.org Subject: Re: Fails to work on live images due to fsync() on pg_commit_ts before doing any write there Message-ID: <20171107150002.GY4628@tamriel.snowman.net> References: <20171107135454.lbelbbvfgadljmuj@home.ouaza.com> <20171107141338.getbacqd2vich7yi@alvherre.pgsql> <20171107141827.GW4628@tamriel.snowman.net> <20171107144727.m6w4psl5kwm2p7jl@home.ouaza.com> <20171107144858.GX4628@tamriel.snowman.net> <11052.1510066721@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qj4M1oJ1PDdXtZ4r" Content-Disposition: inline In-Reply-To: <11052.1510066721@sss.pgh.pa.us> User-Agent: Mutt/1.5.21 (2010-09-15) 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 --qj4M1oJ1PDdXtZ4r Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Stephen Frost writes: > > * Raphael Hertzog (hertzog@debian.org) wrote: > >> Still I believe that this issue should be fixed in both sides. It's not > >> smart from PostgreSQL to call fsync() when it has not made any change. >=20 > > Why? >=20 > My thought about this is just to ignore EINVAL when fsync'ing a directory, > as we already do with EBADF. Yeah, I suppose we could, just not sure that an EINVAL should really be getting returned here, imv. Thanks! Stephen --qj4M1oJ1PDdXtZ4r Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJaAcpyAAoJEO1sijiDR2RVFEsP/1pskCb2NKBTYHRNjrYmGaks wze/i4brjdiH6dV2rnkr7T1vSgRHpj4zbBp2z8s2ldU+TCOS+K9aSbTPboQXkgSY 0MXBvALwk12mN3qs//uLYM/BKixnCnOGa/RS/y+t0VE3kEUmZdfNNJyyQyT5hwbV PaIGbzTldWBgWTzq9pz66mUVZMQolT0ghiDvV9YmzGbxUzVJKUQTJtsiVuRkGbvn vD7JE9kqxmvgO9HpXs61nIaR6+amkwTVW1osO7jlTSPej45a+fZUAvbulTEBOAZW yLEZMB4t7i1BVQQAeO2A4lKyhAJfglrRG3LEeZkxsG/mvYZIKLdpgXK1tYQNKE76 ouisPE+sJn0+lA4W/bTKPLcy9ydsvVcSJzlYJxynO1ivLX7+uwtNMLlqv+RVg2yq CGGoNxj4z/InR+1BqHvub72F7SjuCh454pxQysczJrH8GxwttYjjo+ta4f2xCCWd 1fIVKOX+Cg3072tAyDsROezmgmAdaIlITfq8ZPBjXo3gZQzVX32jjNqplAO7BQWh tcTaaduSPjPSjMY5Bee0lCTuHtyCgnf2BPEc69Tib91cAghGrkSm93MZD6bjqNwk qZzgYNoR+clqf88QXbn7JJ68bC4/qBlpg56D7GgGR10a8EJIkep3v4ASrVtB8N/j zzEb3o0P9PThhzZf2qI2 =f3S9 -----END PGP SIGNATURE----- --qj4M1oJ1PDdXtZ4r--