Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YLXbC-00028F-FY for pgsql-performance@arkaria.postgresql.org; Wed, 11 Feb 2015 13:45:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YLXbB-0002FB-U3 for pgsql-performance@arkaria.postgresql.org; Wed, 11 Feb 2015 13:45:01 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YLXbA-0002Ca-G6 for pgsql-performance@postgresql.org; Wed, 11 Feb 2015 13:45:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YLXb7-0007Ro-Np for pgsql-performance@postgresql.org; Wed, 11 Feb 2015 13:44:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t1BDimjj002084; Wed, 11 Feb 2015 08:44:48 -0500 From: Tom Lane To: Sathish Nelson cc: pgsql-performance@postgresql.org Subject: Re: slow query In-reply-to: References: Comments: In-reply-to Sathish Nelson message dated "Wed, 11 Feb 2015 12:11:27 +0530" Date: Wed, 11 Feb 2015 08:44:48 -0500 Message-ID: <2083.1423662288@sss.pgh.pa.us> 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 Sathish Nelson writes: > am connecting three tables in query. one table have 73000 records > another two tables have 138000 records. > but its take 12 sec for show 12402 rows in tables Increasing work_mem would make those sort steps faster ... regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance