From: Er Galvão Abbott <galvao@galvao.eti.br>
To: pgsql-performance@postgresql.org
Subject: Re: NUMERIC x VARCHAR
Date: Wed, 11 Aug 2004 04:27:31 -0300
Message-ID: <4119CA63.8050307@galvao.eti.br> (raw)
In-Reply-To: <opscj2gwgscq72hf@musicbox>
References: <4119B1C9.2010800@galvao.eti.br>
<opscj2gwgscq72hf@musicbox>
<!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@galvao.eti.br">galvao@galvao.eti.br</a></pre>
<br>
<br>
Pierre-Frédéric Caillaud wrote:<br>
<blockquote cite="midopscj2gwgscq72hf@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@galvao.eti.br"><galvao@galvao.eti.br></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>
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: <4119CA63.8050307@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