Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gKOrA-0004Ft-0p for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Nov 2018 14:30:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gKOr8-0005A7-6I for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Nov 2018 14:30:54 +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.89) (envelope-from ) id 1gKOr7-0005A0-VR for pgsql-hackers@lists.postgresql.org; Wed, 07 Nov 2018 14:30:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gKOr4-00081R-Tk for pgsql-hackers@postgresql.org; Wed, 07 Nov 2018 14:30:53 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id wA7EUbiY026124; Wed, 7 Nov 2018 09:30:37 -0500 From: Tom Lane To: Andrew Dunstan cc: jesper.pedersen@redhat.com, Thomas Munro , Alvaro Herrera , Magnus Hagander , Oskari Saarenmaa , Pg Hackers , Tobias Oberstein Subject: Re: pread() and pwrite() In-reply-to: <4ab64856-6822-ec37-934f-baab06413233@2ndQuadrant.com> References: <20181105155918.jg36uj4rtnxwqtzt@alvherre.pgsql> <1791.1541438632@sss.pgh.pa.us> <856530e2-260d-1d61-ec18-595778868a1b@redhat.com> <4ab64856-6822-ec37-934f-baab06413233@2ndQuadrant.com> Comments: In-reply-to Andrew Dunstan message dated "Wed, 07 Nov 2018 07:55:17 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26122.1541601037.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 07 Nov 2018 09:30:37 -0500 Message-ID: <26123.1541601037@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Dunstan writes: > On 11/7/18 7:26 AM, Jesper Pedersen wrote: >> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dskink&dt=3D20= 18-11-07%2001%3A01%3A01 > And lousyjack, which uses a slightly different way of calling valgrind, = > and thus got past initdb, found a bunch more: > I'm confused by this. Surely the pwrite-based code is writing exactly the same data as before. Do we have to conclude that valgrind is complaining about passing uninitialized data to pwrite() when it did not complain about exactly the same thing for write()? [ looks ... ] No, what we have to conclude is that the write-related suppressions in src/tools/valgrind.supp need to be replaced or augmented with pwrite-related ones. regards, tom lane