Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 3D8D447590F for ; Fri, 5 Jul 2002 06:17:28 -0400 (EDT) Mailbox-Line: From mendola@bigfoot.com Fri Jul 5 06:17:28 2002 Received: from pns.mm.eutelsat.org (pns.mm.eutelsat.org [194.214.173.227]) by postgresql.org (Postfix) with ESMTP id 3F2A447586C for ; Fri, 5 Jul 2002 06:17:26 -0400 (EDT) Received: from nts-03.mm.eutelsat.org (localhost [127.0.0.1]) by pns.mm.eutelsat.org (8.11.6/linuxconf) with ESMTP id g65AG1W32641; Fri, 5 Jul 2002 12:16:01 +0200 Received: from dell-01.mm.eutelsat.org (IDENT:root@dell-01.mm.eutelsat.org [194.214.173.17]) by nts-03.mm.eutelsat.org (8.9.3/8.8.7) with ESMTP id LAA16286; Fri, 5 Jul 2002 11:09:43 +0200 Received: from GMENDOLA2 (gmendola2.mm.eutelsat.org [194.214.173.26]) by dell-01.mm.eutelsat.org (8.11.2/8.8.7) with SMTP id g65AFjL18742; Fri, 5 Jul 2002 12:15:45 +0200 Message-ID: <005001c2240d$23d176e0$070afea9@GMENDOLA2> From: "Gaetano Mendola" To: "Stephan Szabo" Cc: References: <20020704115011.T19207-100000@megazone23.bigpanda.com> Subject: Re: Union strange explain Date: Fri, 5 Jul 2002 12:17:16 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.30 X-Spam-Level: X-Archive-Number: 200207/83 X-Sequence-Number: 4769 Stephan wrote: > number of rows returned). I think there was some question about > whether it was safe to do that optimization (ie, > is select * from (a union [all] b) where condition > always the same as > select * from a where condition union [all] > select * from b where condition > ) Yes but with a View the condition is always extern. I'm understanding that I don't have any possibility to optimize that view, I'm wrong ? Ciao Gaetano