Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YYHa1-0005em-4c for pgsql-performance@arkaria.postgresql.org; Wed, 18 Mar 2015 17:16:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YYHa0-00061B-J0 for pgsql-performance@arkaria.postgresql.org; Wed, 18 Mar 2015 17:16:28 +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 1YYHZy-0005yH-N0 for pgsql-performance@postgresql.org; Wed, 18 Mar 2015 17:16:27 +0000 Received: from nm3-vm6.bullet.mail.ne1.yahoo.com ([98.138.91.96]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YYHZv-0005QM-I1 for pgsql-performance@postgresql.org; Wed, 18 Mar 2015 17:16:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1426698981; bh=rPiH/Hh3cOU62gT11v79FwrtBOXbCjQajwq1lRfklhs=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=dQ8Cq8EYdhRjwgPprHy92w1K8xUG4GyNqQxuJ+SAiRRIdw6dzc3H01TMRlrwJEG7wPjUrHk8kUTsol4AEZ4G/eff7g1v1EY/oWHc9hf8jcJYlH2eUJjmO44mfZwBA00C7DneMBwsXl/H2plqV5+NkeU9HBZmcapgY2NFGKkvTYIkiiCynH2JsRepzjNufCATRyCqoz72cpf13kSlp30lCeFscBqdNYM8olO7iYL7QmcsfXUQ3tp6Ab9+DVgl2Q+5A2D5papOSk7CILh6lpmbR5gf4czZ9RX77oFLf2xPb9Ok8lcNkAGYB4mYB54ZKT8mr0XGZu4NpoEVMbBa601/oA== Received: from [98.138.226.179] by nm3.bullet.mail.ne1.yahoo.com with NNFMP; 18 Mar 2015 17:16:21 -0000 Received: from [98.138.87.8] by tm14.bullet.mail.ne1.yahoo.com with NNFMP; 18 Mar 2015 17:16:21 -0000 Received: from [127.0.0.1] by omp1008.mail.ne1.yahoo.com with NNFMP; 18 Mar 2015 17:16:21 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 754565.28880.bm@omp1008.mail.ne1.yahoo.com X-YMail-OSG: zofLMQgVM1njq.i1noJEH5QOJkpdV79tXAYdCUlflt0_Yo0dLTRJYO8.qNl3GBf a2TD36pUIMUydiO3bOspyNCIIewzZj6nLQIez5Yh3idB2o9MNNwgsObU08pTo8PFB6i5Ox9EcB8L XCyPP_mQ3dTf5CbNlnnwBZbk0T_EiCsyIeXAK2QkoawLHezfbjl0AvWII7RqTrGTcv96aaWwG5WX _iz4h5EHWGig_p8gCrBjYbStk0fumgFrVVENaqMusCHZ2YvccburkMgfwRf6BnISwQLPc1kAwl_o 5OkhnJZWX2eHmy7YsN4b9kMnfcpDrxuy_zzYDT6KUd6EP02.VeP0RInsSmbU53l0c8I_wxj8ry5y s.BvA._.O0vYTaRdBcS0kWU8GSzptwV3EZXXj3ufXpPVkRGkYmSfhTBE6Zh5l.T09CUHDNw7Chut 6FqJqJFGITv2K3vl9qzBCl6NUKxpti5AVEGxXRQte0IMApxVjy.Sr6UBeMiKB7ySxqNd3D0lF3kK tWpditixyU.ApFntfkOaqwlygxapgDFc8KkQ2pxuAHAiQhwNYa4xTUPIAoIJjA5_H9HoCcYO3cgh LOZbPxegB0fESxkbk6xBJAszFrVrDZazFwqFRuoCelHgORt2ZA.3oQ0WoPFsZ._jX0yH4E_J_r7j iXKJO Received: by 98.138.105.222; Wed, 18 Mar 2015 17:16:21 +0000 Date: Wed, 18 Mar 2015 17:16:20 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: "Carson, Leonard" , "pgsql-performance@postgresql.org" Message-ID: <1043199376.1274006.1426698980738.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <510B084A-D218-4671-B16D-F28A9CF16235@ucsd.edu> References: <510B084A-D218-4671-B16D-F28A9CF16235@ucsd.edu> Subject: Re: views much slower in 9.3 than 8.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Length: 995 X-Pg-Spam-Score: -2.0 (--) 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 "Carson, Leonard" wrote: > While acknowledging that nested loops and sequential table scans > account for 85% of the execution time which suggests that a > better query may be needed, why would the same query run in > seconds on 8.x but take minutes on 9.x? First, please show the output of this from both servers: SELECT version(); SELECT name, current_setting(name), source FROM pg_settings WHERE source NOT IN ('default', 'override'); Then, for your newer server, please follow the steps outlined here: https://wiki.postgresql.org/wiki/SlowQueryQuestions My first guess would be that at some point your costing parameters were tuned on the old system, but have not yet been tuned on the new one. Rather than blindly using the old settings for the new server, it would be good to see the information requested on the above-cited page to determine good settings for the new server. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance