Re: NUMERIC x VARCHAR

From: Er Galvão Abbott <galvao(at)galvao(dot)eti(dot)br>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: NUMERIC x VARCHAR
Date: 2004-08-11 07:27:31
Message-ID: 4119CA63.8050307@galvao.eti.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Verdana">It will. As I've said I wont be storing any
symbols.<br>
<br>
</font>
<pre class="moz-signature" cols="72">--
Er Galvão Abbott
Desenvolvedor Web
<a class="moz-txt-link-freetext" href="http://www.galvao.eti.br/">http://www.galvao.eti.br/</a>
<a class="moz-txt-link-abbreviated" href="mailto:galvao(at)galvao(dot)eti(dot)br">galvao(at)galvao(dot)eti(dot)br</a></pre>
<br>
<br>
Pierre-Frédéric Caillaud wrote:<br>
<blockquote cite="midopscj2gwgscq72hf(at)musicbox" type="cite"><br>
Numeric won't store that :
<br>
<br>
    (+33) 4 01 23 45 67
<br>
<br>
On Wed, 11 Aug 2004 02:42:33 -0300, Er Galvão Abbott 
<a class="moz-txt-link-rfc2396E" href="mailto:galvao(at)galvao(dot)eti(dot)br">&lt;galvao(at)galvao(dot)eti(dot)br&gt;</a> wrote:
<br>
<br>
<blockquote type="cite">Greetings.
<br>
<br>
I have a question regarding performance of certain datatypes:
<br>
<br>
I have a field where I will store my clients phone numbers. I know
that  this
<br>
field will never exceed 15 characters, and I will store only numbers 
here (no
<br>
dashes, dots, etc...), so I was wondering:
<br>
<br>
Wich type is faster: NUMERIC(15,0) or VARCHAR(15)? Are there any
storage
<br>
differences between them?
<br>
<br>
TIA,
<br>
<br>
</blockquote>
<br>
<br>
<br>
---------------------------(end of
broadcast)---------------------------
<br>
TIP 6: Have you searched our list archives?
<br>
<br>
              <a class="moz-txt-link-freetext" href="http://archives.postgresql.org">http://archives.postgresql.org</a>
<br>
<br>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">
</pre>
</body>
</html>

Attachment Content-Type Size
unknown_filename text/html 1.8 KB

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Michael Glaesemann 2004-08-11 07:41:25 Re: NUMERIC x VARCHAR
Previous Message Pierre-Frédéric Caillaud 2004-08-11 06:47:10 Re: NUMERIC x VARCHAR