On Tue, 3 Sep 2002, Diogo Biazus wrote:
> I already have ran VACUUM ANALYSE
> And I used the REINDEX too.
>
> Here is the explain:
>
> NOTICE: QUERY PLAN:
>
> Index Scan using palavrasbusca_codbusca_ix on palavrasbusca
> (cost=0.00..333.43 rows=443 width=6)
>
> My SQL is still running, it been more than one hour.
>
> The table has a reference to one other table and it has an index.
I'd guess it's related to foreign keys, but it'd be helpful to
see the statements used to create the tables and constraints/indexes
(or at least a pg_dump of those with the create index/create constraint
trigger).
Also, are there any other triggers on the table?