Re: index scan

From: Mihail Nasedkin <m(dot)nasedkin(dot)perm(at)mail(dot)ru>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: index scan
Date: 2005-03-21 10:05:15
Message-ID: 12925969953.20050321150515@mail.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Die, Richard.

Thank you for answer March, 21 2005 14:15:40:

RH> Mihail Nasedkin wrote:
>> xxxx=# explain select * from sites s join site_screens ss on
>> s.oid = ss.id_site; QUERY PLAN
>> ---------------------------------------------------------------------------
>> Hash Join (cost=...)
>> Hash Cond: ("outer".id_site = "inner".oid)
>> -> Seq Scan on site_screens ss (cost=...)
>> -> Hash (cost=...)
>> -> Seq Scan on sites s (cost=...)

RH> You've commented out the interesting bits (the costs/rows)
In that example main point - Seq Scan on site_screens

>> I want to Index Scan. What must I do?

RH> Why do you want an index scan? Do you have any evidence it will be
RH> faster than a sequential scan?

No, but I want to be ready for make Index scan queries in future. I
make first steps on the customize SQL.

Where I can read more about optimize the SQL-queries and about
differences between types of scan?

--
Regards,
Mihail Nasedkin
m(dot)nasedkin(dot)perm(at)mail(dot)ru

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Béatrice Yueksel 2005-03-21 10:59:18 Re: Your question about date
Previous Message Christoph Haller 2005-03-21 09:54:43 Re: