having indexes when clearing tables

From: "nuno" <wegein(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: having indexes when clearing tables
Date: 2006-07-10 03:35:39
Message-ID: 1152502539.577578.87680@m73g2000cwd.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hi there.

i'm trying to clear data in a table but somehow it takes way too much
time than i once expected (i'm using the formal 'delete from xxx' type
of query.).

this table's got several foreign keys and i suspect that is why it
takes longer than expected.

my question is that
would having indexes increase query performance when clearing tables?
or could anyone suggest me any ways to increase performance of the
query in such cases?

thanks very much.

regards, nuno

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2006-07-10 03:43:10 Re: Is OpenFTS dead?
Previous Message Ron St-Pierre 2006-07-10 03:13:40 Re: Version Discrepancy