From: Richard Huxton <dev@archonet.com>
To: Mihail Nasedkin <m.nasedkin.perm@mail.ru>
Cc: pgsql-sql@postgresql.org
Subject: Re: index scan
Date: Mon, 21 Mar 2005 09:15:40 +0000
Message-ID: <423E90BC.80501@archonet.com> (raw)
In-Reply-To: <10520036015.20050321132621@mail.ru>
References: <10520036015.20050321132621@mail.ru>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, m.nasedkin.perm@mail.ru
Subject: Re: index scan
In-Reply-To: <423E90BC.80501@archonet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox