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 C7C6E14B27FF for ; Wed, 11 Aug 2004 04:26:32 -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 74112-10 for ; Wed, 11 Aug 2004 07:26:25 +0000 (GMT) Received: from itapoa.terra.com.br (itapoa.terra.com.br [200.154.55.227]) by svr1.postgresql.org (Postfix) with ESMTP id 16C7314B287E for ; Wed, 11 Aug 2004 04:26:21 -0300 (ADT) Received: from talara.terra.com.br (talara.terra.com.br [200.154.55.136]) by itapoa.terra.com.br (Postfix) with ESMTP id 93A27DD430F for ; Wed, 11 Aug 2004 04:26:22 -0300 (BRT) Received: from [200.176.35.99] (cm-net-poa-C8B02363.brdterra.com.br [200.176.35.99]) (authenticated user erabbott) by talara.terra.com.br (Postfix) with ESMTP id 5720C3C002 for ; Wed, 11 Aug 2004 04:26:22 -0300 (BRT) Message-ID: <4119CA63.8050307@galvao.eti.br> Date: Wed, 11 Aug 2004 04:27:31 -0300 From: =?ISO-8859-15?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: Re: NUMERIC x VARCHAR References: <4119B1C9.2010800@galvao.eti.br> In-Reply-To: Content-Type: text/html; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.4 tagged_above=0.0 required=5.0 tests=HTML_40_50, HTML_MESSAGE, HTML_TITLE_EMPTY, MIME_HTML_ONLY, RCVD_IN_NJABL, RCVD_IN_NJABL_PROXY, RCVD_IN_SORBS X-Spam-Level: ** X-Archive-Number: 200408/151 X-Sequence-Number: 7787 It will. As I've said I wont be storing any symbols.

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


Pierre-Frédéric Caillaud wrote:

Numeric won't store that :

    (+33) 4 01 23 45 67

On Wed, 11 Aug 2004 02:42:33 -0300, Er Galvăo Abbott  <galvao@galvao.eti.br> wrote:

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,




---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

              http://archives.postgresql.org