Re: Please recommend me the best bulk-delete option

From: "Tomas Vondra" <tv(at)fuzzy(dot)cz>
To: "David Johnston" <polobo(at)yahoo(dot)com>
Cc: "'Siva Palanisamy'" <siva_p(at)hcl(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Please recommend me the best bulk-delete option
Date: 2011-11-17 18:37:43
Message-ID: b68ad0f5cb6c9e8ef305fe69f265e736.squirrel@sq.gransy.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 17 Listopad 2011, 19:26, David Johnston wrote:
> Anyway, if you execute the three TRUNCATEs in the proper order, thus
> avoiding any kind of cascade, you should get maximum performance possible
> on your UNSUPPORTED VERSION of PostgreSQL.

AFAIK cascade with TRUNCATE means 'truncate the depending tables first'.
That's quite different from cascade with DELETE where the db has to
actually find the records, and I don't think there's a significant
performance impact.

Tomas

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andy Colson 2011-11-17 18:48:34 convert text field to utf8 in sql_ascii database
Previous Message Tomas Vondra 2011-11-17 18:34:39 Re: Please recommend me the best bulk-delete option