Simple queries take forever to run - Mailing list pgsql-novice

From Michael Guerin
Subject Simple queries take forever to run
Date
Msg-id 3F4BE939.8040101@rentec.com
Whole thread Raw
List pgsql-novice
I was going to post this on the performance page, but I assume its
something a novice gets stuck on.

This query: select count(*) from x where id not in (select id from y);
takes 1-3 seconds on sql server and runs forever on postgresql.

Both tables have an index on id
Table x has 1200673 rows
Table y has 1282 rows

shared_buffers = 64000
effective_chache_size = 400000

any ideas???




pgsql-novice by date:

Previous
From: Stuart Woodward
Date:
Subject: Upgrading from 7.1.2 to 7.3.3 - function may need to add explicit typecasts
Next
From: Juan Francisco Diaz
Date:
Subject: Returning SETOF INTEGER mystery...