X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 67830566C7 for ; Tue, 22 Mar 2005 18:50:40 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 33009-08 for ; Tue, 22 Mar 2005 18:50:31 +0000 (GMT) Received: from window.monsterlabs.com (window.monsterlabs.com [216.183.105.176]) by svr1.postgresql.org (Postfix) with SMTP id F3DA55654C for ; Tue, 22 Mar 2005 18:50:30 +0000 (GMT) Received: (qmail 28504 invoked from network); 22 Mar 2005 18:50:30 -0000 Received: from w080.z064003242.bna-tn.dsl.cnc.net (HELO ?192.168.1.22?) (64.3.242.80) by 0 with SMTP; 22 Mar 2005 18:50:30 -0000 In-Reply-To: <42402A4B.70703@ceroriesgo.co.cr> References: <42402A4B.70703@ceroriesgo.co.cr> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <8a80660373bf9494ae545525a4e60bcf@sitening.com> Content-Transfer-Encoding: 7bit Cc: PgSQL - Performance From: Thomas F.O'Connell Subject: Re: [ADMIN] Too slow Date: Tue, 22 Mar 2005 12:50:29 -0600 To: Sabio - PSQL X-Mailer: Apple Mail (2.619.2) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200503/462 X-Sequence-Number: 11167 Please post the results of that query as run through EXPLAIN ANALYZE. Also, I'm going to reply to this on pgsql-performance, which is probably where it better belongs. -tfo -- Thomas F. O'Connell Co-Founder, Information Architect Sitening, LLC http://www.sitening.com/ 110 30th Avenue North, Suite 6 Nashville, TN 37203-6320 615-260-0005 On Mar 22, 2005, at 8:23 AM, Sabio - PSQL wrote: > How can I improve speed on my queries. For example this query takes > one day executing itself and it has not finalized !!! > "create table tmp_partes as select * from partes where identificacion > not in (select cedula from sujetos)" > > partes have 1888000 rows, an index on identificacion > sujetos have 5500000 rows, an index on cedula