Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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: unknown_filename
Description: text/html (960 bytes)

Responses

pgsql-performance by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group