X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 61679D9171 for ; Fri, 23 Sep 2005 10:40:14 -0300 (ADT) 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 70129-03 for ; Fri, 23 Sep 2005 13:40:07 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id BF7F1D9167 for ; Fri, 23 Sep 2005 10:40:08 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j8NDe8oN003193; Fri, 23 Sep 2005 09:40:09 -0400 (EDT) To: eVl Cc: pgsql-performance@postgresql.org Subject: Re: optimization downgrade perfomance? In-reply-to: <133614678.20050923012716@gmail.com> References: <133614678.20050923012716@gmail.com> Comments: In-reply-to eVl message dated "Fri, 23 Sep 2005 01:27:16 +0300" Date: Fri, 23 Sep 2005 09:40:08 -0400 Message-ID: <3192.1127482808@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200509/290 X-Sequence-Number: 14598 eVl writes: > When executing this SELECT (see SELECT.A above) it executes in about 700 ms, but when I want wipe out all info about local traffic, with query like this: > SELECT * FROM ( SELECT.A ) a WHERE type = 'global'; > It executes about 10000 ms - more then 10 TIMES SLOWER! > Why this could be? You tell us --- let's see EXPLAIN ANALYZE results for both cases. regards, tom lane