Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFwfK-00028c-B9 for pgsql-hackers@arkaria.postgresql.org; Wed, 31 May 2017 05:59:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dFwfJ-0003zx-DF for pgsql-hackers@arkaria.postgresql.org; Wed, 31 May 2017 05:59:29 +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 1dFwdm-0000xD-Ay for pgsql-hackers@postgresql.org; Wed, 31 May 2017 05:57: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.84_2) (envelope-from ) id 1dFwdj-0000Uj-RR for pgsql-hackers@postgresql.org; Wed, 31 May 2017 05:57: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 v4V5v95K007643; Wed, 31 May 2017 01:57:09 -0400 From: Tom Lane To: Chapman Flack cc: PostgreSQL Hackers Subject: Re: [PATCH] quiet conversion warning in DatumGetFloat4 In-reply-to: <592E5ABF.8070706@anastigmatix.net> References: <592E4D04.1070609@anastigmatix.net> <5894.1496208390@sss.pgh.pa.us> <592E5ABF.8070706@anastigmatix.net> Comments: In-reply-to Chapman Flack message dated "Wed, 31 May 2017 01:55:11 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7641.1496210229.1@sss.pgh.pa.us> Date: Wed, 31 May 2017 01:57:09 -0400 Message-ID: <7642.1496210229@sss.pgh.pa.us> 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 Chapman Flack writes: > On 05/31/17 01:26, Tom Lane wrote: >> Hm. I think it would be better to use DatumGetInt32 here. Arguably, >> direct use of GET_4_BYTES and its siblings should only appear in >> DatumGetFoo macros. > Like so? Looks promising offhand, but I'm too tired to check in detail right now. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers