X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6582514B2825 for ; Wed, 11 Aug 2004 02:41:35 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 41042-04 for ; Wed, 11 Aug 2004 05:41:29 +0000 (GMT) Received: from linares.terra.com.br (linares.terra.com.br [200.154.55.228]) by svr1.postgresql.org (Postfix) with ESMTP id 2775E14B281E for ; Wed, 11 Aug 2004 02:41:25 -0300 (ADT) Received: from paramonga.terra.com.br (paramonga.terra.com.br [200.154.55.133]) by linares.terra.com.br (Postfix) with ESMTP id 84EEADDC2BD for ; Wed, 11 Aug 2004 02:41:25 -0300 (BRT) Received: from [200.176.35.99] (cm-net-poa-C8B02363.brdterra.com.br [200.176.35.99]) (authenticated user erabbott) by paramonga.terra.com.br (Postfix) with ESMTP id 52FCE3C016 for ; Wed, 11 Aug 2004 02:41:25 -0300 (BRT) Message-ID: <4119B1C9.2010800@galvao.eti.br> Date: Wed, 11 Aug 2004 02:42:33 -0300 From: =?ISO-8859-1?Q?Er_Galv=E3o_Abbott?= Reply-To: galvao@galvao.eti.br User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: NUMERIC x VARCHAR X-Priority: 1 (Highest) Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=3.8 tagged_above=0.0 required=5.0 tests=HTML_40_50, HTML_MESSAGE, HTML_TITLE_EMPTY, MIME_HTML_ONLY, PRIORITY_NO_NAME, RCVD_IN_NJABL, RCVD_IN_NJABL_PROXY, RCVD_IN_SORBS, X_PRIORITY_HIGH X-Spam-Level: *** X-Archive-Number: 200408/147 X-Sequence-Number: 7783 Greetings.

I have a question regarding performance of certain datatypes:

I have a field where I will store my clients phone numbers. I know that this field will never exceed 15 characters, and I will store only numbers here (no dashes, dots, etc...), so I was wondering:

Wich type is faster: NUMERIC(15,0) or VARCHAR(15)? Are there any storage differences between them?

TIA,
-- 
Er Galvão Abbott
Desenvolvedor Web
http://www.galvao.eti.br/
galvao@galvao.eti.br