Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id CD5E944CA7C for ; Mon, 27 Feb 2012 11:25:47 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S22SP-0005CV-Bi for pgsql-performance@postgresql.org; Mon, 27 Feb 2012 15:25:47 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q1RFPVro013340; Mon, 27 Feb 2012 10:25:31 -0500 (EST) To: Cherio cc: pgsql-performance@postgresql.org Subject: Re: Joining tables by UUID field - very slow In-reply-to: References: Comments: In-reply-to Cherio message dated "Fri, 24 Feb 2012 17:46:23 -0500" Date: Mon, 27 Feb 2012 10:25:31 -0500 Message-ID: <13339.1330356331@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/233 X-Sequence-Number: 46405 Cherio writes: > This statement takes over 6 times longer than a similar statement against > the same table except the join is done by a integer field, e.g. Could we see EXPLAIN ANALYZE data for both cases? How are you representing the UUIDs, exactly (ie what's the column data type)? regards, tom lane