why postgresql is so slow?

From: "Jinqiang Han" <postgresql(at)db(dot)pku(dot)edu(dot)cn>
To: pgsql-hackers(at)postgresql(dot)org <pgsql-hackers(at)postgresql(dot)org>
Subject: why postgresql is so slow?
Date: 2003-09-20 09:38:25
Message-ID: 200309201708250.SM01224@hanvin
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

hello, all.

I have a table about 2 million rows. when I run "select * from table1" in psql, it will take me about 10 minutes to get the result. I wonder if postgresql can immediately return result like db2.

After that I create a index on a column named id. The time executing "selct * from table1 where id=10" in psql is much faster than that of executing "select * from table1 where id <10" in psql. why?

By the way I'm using postgresql 7.3.

Who can tell me the reason. 3x.

Jinqiang Han

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Richard Huxton 2003-09-20 10:09:34 Re: why postgresql is so slow?
Previous Message Hiroshi Inoue 2003-09-20 03:04:40 Re: pgsql-server/src/backend catalog/index.c comma ...