NUMERIC x VARCHAR

From: Er Galvão Abbott <galvao(at)galvao(dot)eti(dot)br>
To: pgsql-performance(at)postgresql(dot)org
Subject: NUMERIC x VARCHAR
Date: 2004-08-11 05:42:33
Message-ID: 4119B1C9.2010800@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-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Verdana">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 field will never exceed 15 characters, and I will store only
numbers here (no dashes, dots, etc...), so I was wondering:<br>
<br>
Wich type is faster: NUMERIC(15,0) or VARCHAR(15)? Are there any
storage differences between them?<br>
<br>
TIA,<br>
</font>
<pre class="moz-signature" cols="72">--
Er Galv&atilde;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>
</body>
</html>

Attachment Content-Type Size
unknown_filename text/html 960 bytes

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Scott Marlowe 2004-08-11 06:21:48 Re: NUMERIC x VARCHAR
Previous Message Rudi Starcevic 2004-08-11 04:10:52 Re: Bulk Insert and Index use