pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-committers <pgsql-committers@postgresql.org>
Subject: Re: pgsql: pageinspect: Try to fix some bugs in previous commit.
Date: Fri, 03 Feb 2017 10:28:15 -0500
Message-ID: <17873.1486135695@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoY8krBpfSgn+g=WgcPQ6YNa6LixyhT5nHXtCQ9RHC2nrg@mail.gmail.com>
References: <E1cZUc7-0001gM-ES@gemulon.postgresql.org>
	<16740.1486093251@sss.pgh.pa.us>
	<CA+TgmobbOWS6KLR-WEK7xqdJmo=dMSLL3Yueh5UwwYnAdDoUGg@mail.gmail.com>
	<18461.1486094419@sss.pgh.pa.us>
	<CA+TgmoZLfE6_RiXSPWfneOXwsrwcryr_bPua=8mVoTnh-hk2AQ@mail.gmail.com>
	<19193.1486095398@sss.pgh.pa.us>
	<CA+TgmoY8krBpfSgn+g=WgcPQ6YNa6LixyhT5nHXtCQ9RHC2nrg@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Robert Haas <robertmhaas@gmail.com> writes:
>  On Thu, Feb 2, 2017 at 11:16 PM, Tom Lane <tgl@sss.pgh.pa.us> 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



view thread (22+ messages)  latest in thread

Message-ID: <17873.1486135695@sss.pgh.pa.us>
Permalink:  ../17873.1486135695@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17873.1486135695@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com
  Subject: Re: pgsql: pageinspect: Try to fix some bugs in previous commit.
  In-Reply-To: <17873.1486135695@sss.pgh.pa.us>
  References: <E1cZUc7-0001gM-ES@gemulon.postgresql.org> <16740.1486093251@sss.pgh.pa.us> <CA+TgmobbOWS6KLR-WEK7xqdJmo=dMSLL3Yueh5UwwYnAdDoUGg@mail.gmail.com> <18461.1486094419@sss.pgh.pa.us> <CA+TgmoZLfE6_RiXSPWfneOXwsrwcryr_bPua=8mVoTnh-hk2AQ@mail.gmail.com> <19193.1486095398@sss.pgh.pa.us> <CA+TgmoY8krBpfSgn+g=WgcPQ6YNa6LixyhT5nHXtCQ9RHC2nrg@mail.gmail.com> <17873.1486135695@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox