pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Xevi Serrats <tomcatbsd@yahoo.es>
Cc: pgsql-performance@postgresql.org
Subject: Re: Yet another question about not use on indexes
Date: Sun, 11 May 2003 10:15:32 -0400
Message-ID: <13082.1052662532@sss.pgh.pa.us> (raw)
In-Reply-To: <20030511131600.47686.qmail@web13001.mail.yahoo.com>
References: <20030511131600.47686.qmail@web13001.mail.yahoo.com>

=?iso-8859-1?q?Xevi=20Serrats?= <tomcatbsd@yahoo.es> writes:
> pfc=# explain select * from document where codi=2;
>                         QUERY PLAN
> ----------------------------------------------------------
>  Seq Scan on document  (cost=0.00..1.19 rows=1 width=120)
>    Filter: (codi = 2)
> (2 rows)

Judging from the cost estimate, this table is too small to bother with
an indexscan.

			regards, tom lane




view thread (3+ messages)

Message-ID: <13082.1052662532@sss.pgh.pa.us>
Permalink:  ../13082.1052662532@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13082.1052662532@sss.pgh.pa.us

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, tomcatbsd@yahoo.es
  Subject: Re: Yet another question about not use on indexes
  In-Reply-To: <13082.1052662532@sss.pgh.pa.us>
  References: <20030511131600.47686.qmail@web13001.mail.yahoo.com> <13082.1052662532@sss.pgh.pa.us>

* 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