On Sat, 29 Nov 2003, ow wrote: > Am trying to find duplicate values in a large table (about 80M records). > Somehow, none of the two (2) queries (see below) is using the index "I_bca" > that, I believe, should've been used.
As a side note, to help determine if it should be used, you probably want explain analyze not just explain. In general the index is only going to help you if the sort is very expensive, not for the initial scan (where the seq scan is generally faster). ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org