pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: pgsql-hackers@postgreSQL.org
Cc: Andrew Gierth <andrew@tao11.riddles.org.uk>
Subject: Re: [COMMITTERS] pgsql: Centralize definition of integer limits.
Date: Tue, 31 Mar 2015 12:10:48 -0400
Message-ID: <19400.1427818248@sss.pgh.pa.us> (raw)
In-Reply-To: <20150331141423.GK4878@alap3.anarazel.de>
References: <E1YatAv-0007cu-KW@gemulon.postgresql.org>
	<CAB7nPqRqce4hd7UXRw08TGaDsDz04DbecNiU3c0O_7S4YrAdaQ@mail.gmail.com>
	<20150330104825.GE4878@alap3.anarazel.de>
	<CAB7nPqRRLOX_e13L1VagWJJNLHY3uzEo4wdNbQTvRQHZ7rbSKQ@mail.gmail.com>
	<10996.1427744296@sss.pgh.pa.us>
	<20150330195009.GC15659@awork2.anarazel.de>
	<20150331141423.GK4878@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Andres Freund <andres@anarazel.de> writes:
> On 2015-03-30 21:50:09 +0200, Andres Freund wrote:
>> I'm too fried from the redeye back from pgconf nyc to do anything
>> complicated, but it seems quite possible to define int64/uint64 based
>> the stdint.h types if available. And generally a good idea too. I guess
>> I'll try that tomorrow; unless Andrew beats me to it.

> It's possible to do that, but it's not as trivial as I'd hoped. For one
> we'd need to include stdint.h in some places we don't today
> (postgres_ext.h), for another we'd need some uglyness to determine the
> correct printf modifier for int64_t (can't use PRId64 etc afaics).

Yeah, I thought the printf strings would be the sticking point :-(

> I'm tempted to just prefix our limits with PG_ and define them
> unconditionally, including appropriate casts to our types.

I don't have a better idea.

			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



view thread (14+ messages)  latest in thread

Message-ID: <19400.1427818248@sss.pgh.pa.us>
Permalink:  ../19400.1427818248@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19400.1427818248@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, andres@anarazel.de, michael.paquier@gmail.com, pgsql-hackers@postgreSQL.org, andrew@tao11.riddles.org.uk
  Subject: Re: [COMMITTERS] pgsql: Centralize definition of integer limits.
  In-Reply-To: <19400.1427818248@sss.pgh.pa.us>
  References: <E1YatAv-0007cu-KW@gemulon.postgresql.org> <CAB7nPqRqce4hd7UXRw08TGaDsDz04DbecNiU3c0O_7S4YrAdaQ@mail.gmail.com> <20150330104825.GE4878@alap3.anarazel.de> <CAB7nPqRRLOX_e13L1VagWJJNLHY3uzEo4wdNbQTvRQHZ7rbSKQ@mail.gmail.com> <10996.1427744296@sss.pgh.pa.us> <20150330195009.GC15659@awork2.anarazel.de> <20150331141423.GK4878@alap3.anarazel.de> <19400.1427818248@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