From: Mezei Zoltán <mezei.zoltan@telefor.hu>
To: Richard Huxton <dev@archonet.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Deceiding which index to use
Date: Fri, 09 Mar 2007 15:53:03 +0100
Message-ID: <45F174CF.8010302@telefor.hu> (raw)
In-Reply-To: <45F1715E.1050000@archonet.com>
References: <45F15F0F.8080403@telefor.hu>
<45F1715E.1050000@archonet.com>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<small><font face="Tahoma">Richard Huxton wrote:<br>
> Mezei Zoltán wrote:<br>
> Q1. Why are you storing a numeric in a varchar?<br>
<br>
Because it's not always numeric info. :/<br>
<br>
> Q2. How many unique values does anumber have? And how many rows in<br>
> subscriber?<br>
<br>
About 10k distinct anumbers and 20k rows. Nothing special...<br>
<br>
> Q3. What happens if you create the index on plain (anumber) and
then<br>
> test against '555555555'?<br>
<br>
Nothing, everything is the same - the problem lies on the other table's
index usage, using this index is fine.<br>
<br>
Zizi</font><font face="Tahoma"></font><br>
</small>
</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: mezei.zoltan@telefor.hu, dev@archonet.com
Subject: Re: Deceiding which index to use
In-Reply-To: <45F174CF.8010302@telefor.hu>
* 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