Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 2605A632BC5 for ; Thu, 4 Feb 2010 16:09:45 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 18079-05 for ; Thu, 4 Feb 2010 20:09:34 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id B166D632A4C for ; Thu, 4 Feb 2010 16:09:34 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 98F9B34805C; Thu, 4 Feb 2010 12:09:32 -0800 (PST) Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PXBZlzxqY4bu; Thu, 4 Feb 2010 12:09:32 -0800 (PST) Received: from perhan.alvh.no-ip.org (200-85-218-37.bk4-dsl.surnet.cl [200.85.218.37]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 31DCD348044; Thu, 4 Feb 2010 12:09:32 -0800 (PST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id D20156E7EE; Thu, 4 Feb 2010 17:09:29 -0300 (CLST) Date: Thu, 4 Feb 2010 17:09:29 -0300 From: Alvaro Herrera To: Jochen Erwied Cc: Tory M Blue , pgsql-performance@postgresql.org Subject: Re: bigint integers up to 19 digits. Message-ID: <20100204200929.GG5698@alvh.no-ip.org> References: <8a547c841002041015o57d533fdg7237c50dea7a9278@mail.gmail.com> <4B6B153D.9030200@emolecules.com> <8a547c841002041051i53d47fe4pf3a96e22bec85200@mail.gmail.com> <1163141205.20100204200119@erwied.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1163141205.20100204200119@erwied.eu> User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/93 X-Sequence-Number: 37514 Jochen Erwied escribió: > Maybe using 'numeric(19)' instead of bigint is an alternative. I actually > don't know how these numbers are stored internally (some kind of BCD, or as > base-100?), but IMHO they should be faster than strings, although not as > fast as 'native' types. base 10000 in the current implementation -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support