Re: function based index problem

From: Viktor Bojović <viktor(dot)bojovic(at)gmail(dot)com>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: function based index problem
Date: 2011-08-31 22:21:22
Message-ID: CAJu1cLboioAA-kx6jHzkLq1ARmkBT+eN=jqcX-+eYTVcANeXTA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-sql

On Wed, Aug 31, 2011 at 11:53 PM, Kevin Grittner <
Kevin(dot)Grittner(at)wicourts(dot)gov> wrote:

> Viktor Bojovi*<viktor(dot)bojovic(at)gmail(dot)com> wrote:
>
> > i don't know why it doesn't use index scan.
>
> Because it thinks your query will return 81226 rows. We need more
> information to make many suggestions beyond "make sure the table has
> been analyzed".
>
> http://wiki.postgresql.org/wiki/SlowQueryQuestions
>
> Also, it's not considered good form to post an issue to more than
> one PostgreSQL list. This is probably most appropriate on the
> pgsql-performance list, so if you want to follow up with more detail
> to get more detailed suggestions, it would be best to abandon this
> thread and start a new one on that list.
>
> -Kevin
>

"analyze entry" has solved the problem. Thanx a lot.

--
---------------------------------------
Viktor Bojović
---------------------------------------
Wherever I go, Murphy goes with me

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Lukasz Brodziak 2011-09-01 07:32:57 Schema with OID 0 does not exist in pg_dump
Previous Message Viktor Bojović 2011-08-31 22:17:57 Re: function based index problem

Browse pgsql-sql by date

  From Date Subject
Next Message bhavesh1385 2011-09-01 05:15:08 Want some basic compare of data type on PostgreSQL and MySQL
Previous Message Viktor Bojović 2011-08-31 22:17:57 Re: function based index problem