Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ffZvd-0002uG-NT for pgsql-committers@arkaria.postgresql.org; Wed, 18 Jul 2018 00:02:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ffZvb-0004G9-Pp for pgsql-committers@arkaria.postgresql.org; Wed, 18 Jul 2018 00:02:47 +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 1ffZvb-0004G2-LL for pgsql-committers@lists.postgresql.org; Wed, 18 Jul 2018 00:02:47 +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 1ffZvY-00067U-Nl for pgsql-committers@lists.postgresql.org; Wed, 18 Jul 2018 00:02:47 +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 w6I02hW1014993; Tue, 17 Jul 2018 20:02:43 -0400 From: Tom Lane To: Michael Paquier cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Rework error messages around file handling In-reply-to: <20180717235319.GB2998@paquier.xyz> References: <20171.1531869784@sss.pgh.pa.us> <20180717235319.GB2998@paquier.xyz> Comments: In-reply-to Michael Paquier message dated "Wed, 18 Jul 2018 08:53:19 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14991.1531872163.1@sss.pgh.pa.us> Date: Tue, 17 Jul 2018 20:02:43 -0400 Message-ID: <14992.1531872163@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Michael Paquier writes: > On Tue, Jul 17, 2018 at 07:23:04PM -0400, Tom Lane wrote: >> longfin thinks you missed at least one cast ... > Hm, I checked that. Just casting to (Size) should do it. Sounds right to me. regards, tom lane