Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iUexa-0000U9-IW for pgsql-general@arkaria.postgresql.org; Tue, 12 Nov 2019 22:48:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iUewZ-0007gd-Bc for pgsql-general@arkaria.postgresql.org; Tue, 12 Nov 2019 22:47:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iUewY-0007f6-VH for pgsql-general@lists.postgresql.org; Tue, 12 Nov 2019 22:47:27 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1iUewT-0000ng-Nv for pgsql-general@postgresql.org; Tue, 12 Nov 2019 22:47:25 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 6041B18A54636 for ; Tue, 12 Nov 2019 15:47:18 -0700 (MST) Date: Tue, 12 Nov 2019 15:47:18 -0700 (MST) From: DrakoRod To: pgsql-general@postgresql.org Message-ID: <1573598838391-0.post@n3.nabble.com> Subject: DELETE Query Hang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi folks!=20 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:=20 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.=20 Any suggestion?=20 ----- Dame un poco de fe, eso me bastar=C3=A1. Rozvo Ware Solutions=20 -- Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.h= tml