Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 5CC5314E23D4 for ; Wed, 21 Dec 2011 12:26:16 -0400 (AST) Received: from 30.55.colo.spiretech.net ([69.168.55.30] helo=lists.commandprompt.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RdOzb-0000xT-TZ for pgsql-bugs@postgresql.org; Wed, 21 Dec 2011 16:26:16 +0000 Received: from perhan.alvh.no-ip.org (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id E9CB9165; Wed, 21 Dec 2011 08:26:06 -0800 (PST) Received: from perhan.alvh.no-ip.org ([200.126.85.47] helo=perhan.alvh.no-ip.org) by assp.commandprompt.com with ESMTPS(AES256-SHA) (2.1.1); 21 Dec 2011 08:26:04 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id D5D036E453; Wed, 21 Dec 2011 13:25:53 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: Pg Bugs Subject: Re: BUG #6348: PROBLEMAS DELETE From: Alvaro Herrera To: wilsoncamago In-reply-to: References: Date: Wed, 21 Dec 2011 13:25:53 -0300 Message-Id: <1324484692-sup-4029@alvh.no-ip.org> User-Agent: Sup/git X-Assp-Version: 2.1.1(11278) on assp.commandprompt.com X-Assp-Client-TLS: yes X-Assp-ID: assp.commandprompt.com m1-84766-11192 X-Assp-Envelope-From: alvherre@alvh.no-ip.org X-Assp-Intended-For: wilsoncamago@gmail.com X-Assp-Original-Subject: Re: [BUGS] BUG #6348: PROBLEMAS DELETE Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: 0.3 (/) X-Archive-Number: 201112/192 X-Sequence-Number: 32003 Excerpts from wilsoncamago's message of mi=C3=A9 dic 21 11:26:39 -0300 20= 11: > hace algun tiempo tube el inconveniente de eliminar de una tabla relaci= onada > en una subconsulta y eliminando 10000 aprox se demoraba 20 seg la consu= lta > era=20 > DELETE FROM saldo_detalle_cartera=20 > WHERE saldo_detalle_cartera.movimiento_contable in (select > s.movimiento_contable from saldo_detalle_cartera s=20 > inner join movimiento_contable m on > m.id_mov_contable=3D s.movimiento_contable > and m.proyecto =3D '185' ) >=20 > afotunadamente hay una forma mas rapida que es usando esta sentencia Wilson, esto no es un bug. Por favor plantea tu pregunta en pgsql-es-ayuda@postgresql.org --=20 =C3=81lvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support