Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TkXSO-0006Xa-AU for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Dec 2012 09:57:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TkXSN-0007m0-8R for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Dec 2012 09:57:55 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TkXSM-0007lo-5e for pgsql-hackers@postgresql.org; Mon, 17 Dec 2012 09:57:54 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TkXSJ-0003nG-M4 for pgsql-hackers@postgresql.org; Mon, 17 Dec 2012 09:57:52 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 7A29F288AA; Mon, 17 Dec 2012 01:57:50 -0800 (PST) Received: from zcs-prod-ext-mta-2.vmware.com (zcs-prod-ext-mta-2.vmware.com [10.113.62.224]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 75DE7B037C; Mon, 17 Dec 2012 01:57:50 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id 22D97C1520; Mon, 17 Dec 2012 01:57:50 -0800 (PST) X-Virus-Scanned: amavisd-new at zcs-prod-ext-mta-2.vmware.com Received: from zcs-prod-ext-mta-2.vmware.com ([127.0.0.1]) by localhost (zcs-prod-ext-mta-2.vmware.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eMcsa0S9R3pf; Mon, 17 Dec 2012 01:57:50 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id F2E39C152C; Mon, 17 Dec 2012 01:57:49 -0800 (PST) X-Virus-Scanned: amavisd-new at zcs-prod-ext-mta-2.vmware.com Received: from zcs-prod-ext-mta-2.vmware.com ([127.0.0.1]) by localhost (zcs-prod-ext-mta-2.vmware.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id YOC0LYMhWmgy; Mon, 17 Dec 2012 01:57:49 -0800 (PST) Received: from [192.168.1.90] (unknown [10.113.62.14]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTPSA id EB188C1520; Mon, 17 Dec 2012 01:43:28 -0800 (PST) Message-ID: <50CEE946.4070403@vmware.com> Date: Mon, 17 Dec 2012 11:43:34 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121027 Icedove/10.0.10 MIME-Version: 1.0 To: Pavan Deolasee CC: Andres Freund , pgsql-hackers@postgresql.org Subject: Re: XLByte* usage References: <20121216141624.GC4683@awork2.anarazel.de> <50CED81A.3080400@vmware.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -6.9 (------) 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 17.12.2012 11:04, Pavan Deolasee wrote: > On Mon, Dec 17, 2012 at 2:00 PM, Heikki Linnakangas > wrote: >> On 16.12.2012 16:16, Andres Freund wrote: >>> >>> Now that XLRecPtr's are plain 64bit integers what are we supposed to use >>> in code comparing and manipulating them? There already is plenty example >>> of both, but I would like new code to go into one direction not two... >>> >>> I personally find direct comparisons/manipulations far easier to read >>> than the XLByte* equivalents. >> >> I've still used XLByte* macros, but I agree that plain< => are easier to >> read. +1 for using< => in new code. > > Do we ever see us changing this from 64-bit integers to something else > ? If so, a macro would be much better. I don't see us changing it again any time soon. Maybe in 20 years time people will start overflowing 2^64 bytes of WAL generated in the lifetime of a database, but I don't think we need to start preparing for that yet. - Heikki -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers