Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uxm4F-0001LU-K7 for pgsql-performance@arkaria.postgresql.org; Fri, 12 Jul 2013 22:43:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Uxm4E-0005wx-K7 for pgsql-performance@arkaria.postgresql.org; Fri, 12 Jul 2013 22:43:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uxm4D-0005wr-Oe for pgsql-performance@postgresql.org; Fri, 12 Jul 2013 22:43:57 +0000 Received: from smtp.01.com ([199.36.142.181] helo=smtp-out-1.01.com) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uxm45-0003y7-6n for pgsql-performance@postgresql.org; Fri, 12 Jul 2013 22:43:57 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 2473929400F for ; Fri, 12 Jul 2013 17:43:47 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp-out-1.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RmjCS__-6THn for ; Fri, 12 Jul 2013 17:43:47 -0500 (CDT) Received: from smtp-out-1.01.com (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 066332941AF for ; Fri, 12 Jul 2013 17:43:47 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id E5BDC294146 for ; Fri, 12 Jul 2013 17:43:46 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp-out-1.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id iy8FHuo-hnpi for ; Fri, 12 Jul 2013 17:43:46 -0500 (CDT) Received: from [172.47.23.103] (70-36-143-10.dsl.dynamic.sonic.net [70.36.143.10]) by smtp-out-1.01.com (Postfix) with ESMTPSA id A83E829400F for ; Fri, 12 Jul 2013 17:43:46 -0500 (CDT) Message-ID: <51E086A1.2080504@agliodbs.com> Date: Fri, 12 Jul 2013 15:43:45 -0700 From: Josh Berkus Organization: PostgreSQL Experts Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Trying to eliminate union and sort References: <51DEF924.1040809@consistentstate.com> <51DF51DA.7010509@agliodbs.com> <51E082D8.4030503@consistentstate.com> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org > As for the counts on the tables: > table1 3,653,472 > table2 2,191,314 > table3 25,676,589 > > I think it's safe to assume right now that any resulting joins are not > one-to-one Hmmm? How is doing a subselect in the SELECT clause even working, then? -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance