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 3406914B281C for ; Wed, 11 Aug 2004 03:47:13 -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 62381-07 for ; Wed, 11 Aug 2004 06:47:08 +0000 (GMT) Received: from boutiquenumerique.com (gailleton-2-82-67-9-10.fbx.proxad.net [82.67.9.10]) by svr1.postgresql.org (Postfix) with ESMTP id 808FD14B2806 for ; Wed, 11 Aug 2004 03:47:07 -0300 (ADT) Received: (qmail 22397 invoked from network); 11 Aug 2004 08:47:12 +0200 Received: from unknown (HELO musicbox) (192.168.0.2) by gailleton-2-82-67-9-10.fbx.proxad.net with SMTP; 11 Aug 2004 08:47:12 +0200 To: pgsql-performance@postgresql.org Subject: Re: NUMERIC x VARCHAR References: <4119B1C9.2010800@galvao.eti.br> Message-ID: From: =?iso-8859-15?Q?Pierre-Fr=E9d=E9ric_Caillaud?= Organization: =?iso-8859-15?Q?La_Boutique_Num=E9rique?= Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Wed, 11 Aug 2004 08:47:10 +0200 In-Reply-To: <4119B1C9.2010800@galvao.eti.br> User-Agent: Opera M2/7.53 (Linux, build 737) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/150 X-Sequence-Number: 7786 Numeric won't store that : (+33) 4 01 23 45 67 On Wed, 11 Aug 2004 02:42:33 -0300, Er Galvão Abbott 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, >