Re: index and seq scan

From: Tina Messmann <tina(dot)messmann(at)xinux(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: index and seq scan
Date: 2002-01-11 08:13:11
Message-ID: 3C3E9E97.4080108@xinux.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

uups, the second query should be 'appid < 10', sorry for this.

vaccum analyze was performed on the table just before the queries were
executed.
The estimations are correct:
db=# select count(*) from test where appid > 10;
count
-------
81023
(1 row)

The runtime is not the problem in this case (with seq scan about 1sec,
after enabling seq scan and using index scan about 1sec), i was just
wondering why Postgres is using seq scan on 'appid > 10' and index scan
on 'appid < 10'.

Thank you all for the answers.

regards
Tina

In response to

Browse pgsql-general by date

  From Date Subject
Next Message will trillich 2002-01-11 09:35:08 Re: caching subtotals: update vs sum -- aaugh!
Previous Message Jean-Michel POURE 2002-01-11 07:45:07 Home Location Registry (HLR) and VLR databases