Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZfmt-0006Lb-5h for pgsql-committers@arkaria.postgresql.org; Fri, 03 Feb 2017 15:28:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cZfms-0008VO-M0 for pgsql-committers@arkaria.postgresql.org; Fri, 03 Feb 2017 15:28:34 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cZfmf-0008GZ-9N for pgsql-committers@postgresql.org; Fri, 03 Feb 2017 15:28:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cZfma-0006VS-ON for pgsql-committers@postgresql.org; Fri, 03 Feb 2017 15:28:20 +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 v13FSFE3017874; Fri, 3 Feb 2017 10:28:15 -0500 From: Tom Lane To: Robert Haas cc: pgsql-committers Subject: Re: pgsql: pageinspect: Try to fix some bugs in previous commit. In-reply-to: References: <16740.1486093251@sss.pgh.pa.us> <18461.1486094419@sss.pgh.pa.us> <19193.1486095398@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Fri, 03 Feb 2017 09:49:27 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17872.1486135695.1@sss.pgh.pa.us> Date: Fri, 03 Feb 2017 10:28:15 -0500 Message-ID: <17873.1486135695@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-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Robert Haas writes: > On Thu, Feb 2, 2017 at 11:16 PM, Tom Lane wrote: >> I just made the C code agree with what the SQL declarations for the >> functions say. > Doesn't look like it to me. You changed a bunch of places that say > UInt32GetDatum to UInt64GetDatum, but the SQL type certainly isn't > unsigned. The machines don't care about that. They do care about the width of the datum. Particularly on 32-bit hardware, where one width is pass-by-val and the other isn't. (Also, if your point is that you wish we had a uint64 SQL type, I doubt we're going there.) What needs to be resolved to decide if any of this is actually sane is to figure out which of these values need to be int64 on the SQL side because (a) they could practically exceed the range of signed int32 and (b) it would bother us to show such values as negative rather than large positive. I suspect that not all the things currently declared as int64 really need to be. I also remain unhappy that we can't manage to be consistent about what a BlockNumber parameter is represented as. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers