From: Alvaro Herrera <alvherre@commandprompt.com>
To: wilsoncamago <wilsoncamago@gmail.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #6348: PROBLEMAS DELETE
Date: Wed, 21 Dec 2011 13:25:53 -0300
Message-ID: <1324484692-sup-4029@alvh.no-ip.org> (raw)
In-Reply-To: <E1RdN7v-0005FK-SG@wrigleys.postgresql.org>
References: <E1RdN7v-0005FK-SG@wrigleys.postgresql.org>
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@postgresql.org
--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: alvherre@commandprompt.com, wilsoncamago@gmail.com
Subject: Re: BUG #6348: PROBLEMAS DELETE
In-Reply-To: <1324484692-sup-4029@alvh.no-ip.org>
References: <E1RdN7v-0005FK-SG@wrigleys.postgresql.org> <1324484692-sup-4029@alvh.no-ip.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox