Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aXBLn-0005rm-JK for pgsql-committers@arkaria.postgresql.org; Sat, 20 Feb 2016 17:29:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aXBLn-0007im-0p for pgsql-committers@arkaria.postgresql.org; Sat, 20 Feb 2016 17:29:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aXBLm-0007iT-EO for pgsql-committers@postgresql.org; Sat, 20 Feb 2016 17:29:46 +0000 Received: from mail-vk0-x230.google.com ([2607:f8b0:400c:c05::230]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aXBLj-0004cb-DP for pgsql-committers@postgresql.org; Sat, 20 Feb 2016 17:29:45 +0000 Received: by mail-vk0-x230.google.com with SMTP id c3so99698182vkb.3 for ; Sat, 20 Feb 2016 09:29:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=9VT9Juk0XgRcgPptSDejc/wyurldcYs9y8GkaGKML1Y=; b=EsFeF9/CXrCoQbYF7kU9AYui1m47p3DqDr0FsUjLRHYSBGkFbXgiEEwmEeS9/Nf/lM eUwccfmHzvqj5dJqsYAHHIS7P7ZRAdGyqkubU8aH7Ygo0D0Bcpf9j16WM0x8Ff2gcGrD P0nVPy+nIOAX5w/kpIooUewN+DMmnxYWfCsTNJ7+E5rh2NBRrq+ttbi6ZbMKhFeqFryP AWZvHP18R9u3ZiAy70kXbvLgUI/f4oo7AJ718oc9NmlQ2Umnlak49g3YlZD8uuI12uDl fY1VmR4XmNGygJWi/IMT9OeUSz/Pj+/1nL5akStt2qP60wvZyctiE2OHxWuukUO0t+WQ Pzrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=9VT9Juk0XgRcgPptSDejc/wyurldcYs9y8GkaGKML1Y=; b=fZCl244Mgz9n45WLLcUn6NPdnNtRH7rFIQ4D7ICp5Sw+hZ0WtyOIyhy5yltIk8jSfb PSKNqRNhBWMomXQZcWykydGau2UpvrfvT5rlHp/kimuWW6+r/YdJhaJwfwJwNWG9hrn2 HHwcRbGrX3TGguxoPKFFCTse8YCHLx7tMxyH8ZTueMArHdNi+0GyvArB48plMKvfeSVh wJm1vZsmk2vcG+Pdmk8uQIMc10+w8P+TSx3eJnCyOkFC47uowvRp+7QtNOY6JUdBdKXR 5lB9LgWh4+nZLk6Z4+nI1uzs4XtrAmDV0nqrJ7aO9bmNIo6i+UYWFJX/Bd3PfEfP+AUK QczA== X-Gm-Message-State: AG10YOTVBmGypKsG5pvroDUsJod2jVLs1vI8yjyi+Ivfs1DdfIsrCute3SwF+Nq4MHlttiMoH118F4Rb7n9PSQ== MIME-Version: 1.0 X-Received: by 10.31.48.216 with SMTP id w207mr16311203vkw.36.1455989380970; Sat, 20 Feb 2016 09:29:40 -0800 (PST) Received: by 10.159.38.115 with HTTP; Sat, 20 Feb 2016 09:29:40 -0800 (PST) In-Reply-To: References: <5432.1455980047@sss.pgh.pa.us> <6029.1455980933@sss.pgh.pa.us> <10663.1455985971@sss.pgh.pa.us> Date: Sat, 20 Feb 2016 17:29:40 +0000 Message-ID: Subject: Re: pgsql: Fix pg_size_bytes() to be more portable. From: Dean Rasheed To: Tom Lane Cc: pgsql-committers@postgresql.org Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.7 (--) 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 On 20 February 2016 at 17:24, Dean Rasheed wrote: > It looks to me as though it doesn't need long long anyway, since the > rotation it's doing can be done just as easily with ints, for example: Oh, scratch that -- I was assuming int would be 32-bit, which it might not be. Regards, Dean -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers