Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aX8vJ-0007FC-Bo for pgsql-committers@arkaria.postgresql.org; Sat, 20 Feb 2016 14:54:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aX8vI-0007uS-VB for pgsql-committers@arkaria.postgresql.org; Sat, 20 Feb 2016 14:54:17 +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) (envelope-from ) id 1aX8vI-0007uM-KG for pgsql-committers@postgresql.org; Sat, 20 Feb 2016 14:54:16 +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) (envelope-from ) id 1aX8vB-0000Wu-Rp for pgsql-committers@postgresql.org; Sat, 20 Feb 2016 14:54:15 +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 u1KEs7Qj005433; Sat, 20 Feb 2016 09:54:07 -0500 From: Tom Lane To: Dean Rasheed cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Fix pg_size_bytes() to be more portable. In-reply-to: References: Comments: In-reply-to Dean Rasheed message dated "Sat, 20 Feb 2016 11:11:43 +0000" Date: Sat, 20 Feb 2016 09:54:07 -0500 Message-ID: <5432.1455980047@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 Dean Rasheed writes: > Fix pg_size_bytes() to be more portable. > Commit 53874c5228fe16589a4d01b3e1fab3678e0fd8e3 broke various 32-bit > buildfarm machines because it incorrectly used an 'L' suffix for what > needed to be a 64-bit literal. Thanks to Michael Paquier for helping > to diagnose this. That's still not right: not all compilers support "long long", and the ones that don't won't have "LL" notation either. Project style is to use something like "(uint64) 1024" instead. 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