Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 495B1633AD1 for ; Thu, 4 Feb 2010 14:48:12 -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 03529-04 for ; Thu, 4 Feb 2010 18:48:01 +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 CB34E633799 for ; Thu, 4 Feb 2010 14:48:01 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id EE79034805E; Thu, 4 Feb 2010 10:48:00 -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 naTQjiM9oV8C; Thu, 4 Feb 2010 10:48:00 -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 9A13D348044; Thu, 4 Feb 2010 10:48:00 -0800 (PST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id B44656E7EE; Thu, 4 Feb 2010 15:47:58 -0300 (CLST) Date: Thu, 4 Feb 2010 15:47:58 -0300 From: Alvaro Herrera To: Tory M Blue Cc: pgsql-performance@postgresql.org Subject: Re: bigint integers up to 19 digits. Message-ID: <20100204184758.GF5698@alvh.no-ip.org> References: <8a547c841002041015o57d533fdg7237c50dea7a9278@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8a547c841002041015o57d533fdg7237c50dea7a9278@mail.gmail.com> 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/90 X-Sequence-Number: 37511 Tory M Blue escribió: > I looked into the numeric data type, but the docs say that it can be slow. It is slower than values that fit in a single CPU register, sure. Is it slow enough that you can't use it? That's a different question. I'd give it a try -- maybe it's not all that slow. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.