Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ycfhe-0000au-4t for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Mar 2015 19:50:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Ycfhd-0005hz-GX for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Mar 2015 19:50:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Ycfhb-0005ht-WE for pgsql-hackers@postgreSQL.org; Mon, 30 Mar 2015 19:50:28 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YcfhR-0004Yr-Ch for pgsql-hackers@postgreSQL.org; Mon, 30 Mar 2015 19:50:26 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id D6FD0860001; Mon, 30 Mar 2015 21:50:13 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p54895B94.dip0.t-ipconnect.de [84.137.91.148]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id DB7C5860001; Mon, 30 Mar 2015 21:50:09 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id 26022100B03; Mon, 30 Mar 2015 21:50:09 +0200 (CEST) Date: Mon, 30 Mar 2015 21:50:09 +0200 From: Andres Freund To: Tom Lane Cc: Michael Paquier , pgsql-hackers@postgreSQL.org Subject: Re: [COMMITTERS] pgsql: Centralize definition of integer limits. Message-ID: <20150330195009.GC15659@awork2.anarazel.de> References: <20150330104825.GE4878@alap3.anarazel.de> <10996.1427744296@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10996.1427744296@sss.pgh.pa.us> X-Pg-Spam-Score: -4.2 (----) 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 On 2015-03-30 15:38:16 -0400, Tom Lane wrote: > Michael Paquier writes: > > On Mon, Mar 30, 2015 at 7:48 PM, Andres Freund wrote: > >> On 2015-03-30 14:01:25 +0900, Michael Paquier wrote: > >>> My OSX dev box is generating a couple of warnings since this commit: > >>> pg_dump.c:14548:45: warning: format specifies type 'long' but the > >>> argument has type 'long long' [-Wformat] > > FWIW, I'm seeing the same thing on my OSX laptop. I think the explanation > is simple: both "long" and "long long" are 64 bits on this machine. > Our configure chooses the former to be "int64", but stdint.h is using > the latter. I'm not sure there's any good way to know what stdint.h > thinks is int64, but we can't do a half-baked integration job like this. > Either we revert 83ff1618b altogether, or we make int64/uint64 depend > on definitions from stdint.h rather than being chosen independently by > configure. Obviously we need to fix this, but I'd actually say this isn't originally the fault of that change. The disparity in types already existed in a bunch of places (timestamp.c, pgbench.c), now it's more central, that's all. 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. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers