From: Er Galvão Abbott <galvao@galvao.eti.br>
To: pgsql-performance@postgresql.org
Subject: NUMERIC x VARCHAR
Date: Wed, 11 Aug 2004 02:42:33 -0300
Message-ID: <4119B1C9.2010800@galvao.eti.br> (raw)
<!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ã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@galvao.eti.br">galvao@galvao.eti.br</a></pre>
</body>
</html>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: galvao@galvao.eti.br
Subject: Re: NUMERIC x VARCHAR
In-Reply-To: <4119B1C9.2010800@galvao.eti.br>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox