Re: index scan

From: Richard Huxton <dev(at)archonet(dot)com>
To: Mihail Nasedkin <m(dot)nasedkin(dot)perm(at)mail(dot)ru>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: index scan
Date: 2005-03-21 09:15:40
Message-ID: 423E90BC.80501@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

  • index scan at 2005-03-21 08:26:21 from Mihail Nasedkin

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Christoph Haller 2005-03-21 09:54:43 Re:
Previous Message Mihail Nasedkin 2005-03-21 08:26:21 index scan