Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YWBui-0005id-Ul for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Mar 2015 22:49:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YWBui-0002eM-98 for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Mar 2015 22:49:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YWAD9-0003gH-Ji for pgsql-bugs@postgresql.org; Thu, 12 Mar 2015 21:00:07 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YWAD5-0001za-K7 for pgsql-bugs@postgresql.org; Thu, 12 Mar 2015 21:00:05 +0000 MIME-Version: 1.0 Subject: BUG #12859: views much slower in 9.4.1 than 8.4.7 To: pgsql-bugs@postgresql.org From: lcarson@sdsc.edu Date: Thu, 12 Mar 2015 20:59:57 +0000 Message-ID: <20150312205957.2516.65314@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 12859 Logged by: lcarson Email address: lcarson@sdsc.edu PostgreSQL version: 9.4.1 Operating system: redhat 6 Description: We have views that are running anywhere from 20x slower to failing to complete in 9.4.1 whereas in 8.4.7 they produced results in seconds or tens of seconds on the same platform. After upgrading from 8.4 to 9.3, I ran ANALYZE on the entire db and it DID improve performance for some, but not all, of the views in question. Here is an explain plan of one of the slow views in 9.4: http://explain.depesz.com/s/36n While acknowledging that nested loops and sequential scans account for 85% of the execution time, why would this run in seconds in 8.4 and minutes in 9.4? Is it because of changes to the planner? -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs