Select Statement Hang... - Mailing list pgsql-novice

From ttzhang
Subject Select Statement Hang...
Date
Msg-id 3F1C6D6F@bearmail.berkeley.edu
Whole thread Raw
List pgsql-novice
I was trying to set up a foreign key for an id field but found out that some
of the ids are not in the referenced table.  To look things up, I tried

select id from btable where id not in (select id from atable)

The query just hang.....  My tables are pretty big (200, 000?)  can anyone
help me to pinpoint the problem?

Thanks!



pgsql-novice by date:

Previous
From: Alejandro Fuentes González
Date:
Subject: RE: [NOVICE] I´ve got problems when I try to use de psql
Next
From: "Brian Johnson"
Date:
Subject: Cannot insert a duplicate key into unique index?