Re: Index Scanning

From: Richard Huxton <dev(at)archonet(dot)com>
To: Enrico <scotty(at)linuxtime(dot)it>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Index Scanning
Date: 2007-01-03 10:55:03
Message-ID: 459B8B87.2020802@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Enrico wrote:
> Hi, I have this query
>
> select TB.id_int,TR.codice_art,importo,cod_iva,prezzo,qta as qta
> from bolle_carico_testata TB inner join tmp_righe_bolle_carico TR on (TB.id_bolla_rem=TR.id_bolla_rem);
[snip plan]
> Can anybody tell me why I have two Seq scans instead of two Ind. scan?
> And how can I do to have two ind. scan?

You're fetching all the rows from both tables - what would an index scan
gain you?

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message JTyrrell 2007-01-03 10:55:24 pg_dump problems
Previous Message Gregory S. Williamson 2007-01-03 09:52:08 Re: queueing via database table?