database not using indexes, yet

Поиск
Список
Период
Сортировка
От Silvio Brandani
Тема database not using indexes, yet
Дата
Msg-id 4EC66726.6060800@tech.sdb.it
обсуждение исходный текст
Ответ на database not using indexes  (Silvio Brandani <silvio.brandani@tech.sdb.it>)
Ответы Re: database not using indexes, yet  (Szymon Guz <mabewlun@gmail.com>)
Re: database not using indexes, yet  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
On postgres 8.3.11 on linux centos 5 we have a table  not too big  with
primary key index on

Indexes:
     "aida_references_pkey" PRIMARY KEY, btree (aida_reference_id)

the query not use index:

aidadb=#  explain analyze select aida_reference_id from
aida.aida_references where aida_reference_id = '3145';
                                                    QUERY PLAN
----------------------------------------------------------------------------------------------------------------
  Seq Scan on aida_references  (cost=0.00..51489.15 rows=1 width=4)
(actual time=0.173..1457.643 rows=1 loops=1)
    Filter: (aida_reference_id = 3145)
  Total runtime: 1457.696 ms


already executed the vacuum ,reindex.

Please help

--
Silvio Brandani


---






Utilizziamo i dati personali che la riguardano esclusivamente per nostre finalità amministrative e contabili, anche
quandoli comunichiamo a terzi. Informazioni dettagliate, anche in ordine al Suo diritto di accesso e agli altri Suoi
diritti,sono riportate alla pagina http://www.savinodelbene.com/privacy.html 
Se avete ricevuto questo messaggio per errore Vi preghiamo di ritornarlo al mittente eliminandolo assieme agli
eventualiallegati, ai sensi art. 616 codice penale http://www.savinodelbene.com/privacy/codice_penale_616.html 
L'Azienda non si assume alcuna responsabilità giuridica qualora pervengano da questo indirizzo messaggi estranei
all'attivitàlavorativa o contrari a norme. 
--

В списке pgsql-admin по дате отправления:

Предыдущее
От: Scott Ribe
Дата:
Сообщение: Re: rsync and streaming replication
Следующее
От: Szymon Guz
Дата:
Сообщение: Re: database not using indexes, yet