Re: BUG #6348: PROBLEMAS DELETE

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: wilsoncamago <wilsoncamago(at)gmail(dot)com>
Cc: Pg Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #6348: PROBLEMAS DELETE
Date: 2011-12-21 16:25:53
Message-ID: 1324484692-sup-4029@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


Excerpts from wilsoncamago's message of mié dic 21 11:26:39 -0300 2011:

> hace algun tiempo tube el inconveniente de eliminar de una tabla relacionada
> en una subconsulta y eliminando 10000 aprox se demoraba 20 seg la consulta
> era
> DELETE FROM saldo_detalle_cartera
> WHERE saldo_detalle_cartera.movimiento_contable in (select
> s.movimiento_contable from saldo_detalle_cartera s
> inner join movimiento_contable m on
> m.id_mov_contable= s.movimiento_contable
> and m.proyecto = '185' )
>
> 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(at)postgresql(dot)org

--
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Shahaf 2011-12-21 16:30:31 Re: BUG #6204: Using plperl functions generate crash
Previous Message Tom Lane 2011-12-21 16:00:34 Re: R: R: R: R: R: BUG #6342: libpq blocks forever in "poll" function