Re: Deceiding which index to use

From: Mezei Zoltán <mezei(dot)zoltan(at)telefor(dot)hu>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Deceiding which index to use
Date: 2007-03-09 14:53:03
Message-ID: 45F174CF.8010302@telefor.hu
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=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<small><font face="Tahoma">Richard Huxton wrote:<br>
&gt; Mezei Zoltán wrote:<br>
&gt; Q1. Why are you storing a numeric in a varchar?<br>
<br>
Because it's not always numeric info. :/<br>
<br>
&gt; Q2. How many unique values does anumber have? And how many rows in<br>
&gt; subscriber?<br>
<br>
About 10k distinct anumbers and 20k rows. Nothing special...<br>
<br>
&gt; Q3. What happens if you create the index on plain (anumber) and
then<br>
&gt; 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>

Attachment Content-Type Size
unknown_filename text/html 869 bytes

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Richard Huxton 2007-03-09 15:03:54 Re: Deceiding which index to use
Previous Message Richard Huxton 2007-03-09 14:38:22 Re: Deceiding which index to use