DELETE Query Hang

From: DrakoRod <drakoflames(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: DELETE Query Hang
Date: 2019-11-12 22:47:18
Message-ID: 1573598838391-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi folks!

I Have a question, in a database are a table with many files (bytea) stored
(I support this database a don't design it), but we need delete many rows
(38000 rows approx), but I when execute query:

BEGIN;
ALTER TABLE my_file_table DISABLE TRIGGER ALL;
DELETE FROM my_file_table WHERE id_table <> 230;

This query hang... 50 minutes and the query do not finish.

Any suggestion?

-----
Dame un poco de fe, eso me bastarĂ¡.
Rozvo Ware Solutions
--
Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rob Sargent 2019-11-12 22:51:47 Re: DELETE Query Hang
Previous Message Palle Girgensohn 2019-11-12 14:40:37 Re: here does postgres take its timezone information from?