Re: index scan - Mailing list pgsql-sql

From Richard Huxton
Subject Re: index scan
Date
Msg-id 423E90BC.80501@archonet.com
Whole thread Raw
In response to index scan  (Mihail Nasedkin <m.nasedkin.perm@mail.ru>)
Responses Re: index scan
List pgsql-sql
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=...)

You've commented out the interesting bits (the costs/rows)

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

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

--   Richard Huxton  Archonet Ltd


pgsql-sql by date:

Previous
From: Mihail Nasedkin
Date:
Subject: index scan
Next
From: Christoph Haller
Date:
Subject: Re: