Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XYL17-00065z-AX for pgsql-performance@arkaria.postgresql.org; Sun, 28 Sep 2014 20:24:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XYL16-00058k-Lw for pgsql-performance@arkaria.postgresql.org; Sun, 28 Sep 2014 20:24:24 +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 1XYL15-00058e-TF for pgsql-performance@postgresql.org; Sun, 28 Sep 2014 20:24:23 +0000 Received: from mail.plaintext.sk ([85.248.156.6] helo=shiva.plaintext.sk) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XYL11-0002p4-CZ for pgsql-performance@postgresql.org; Sun, 28 Sep 2014 20:24:21 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by shiva.plaintext.sk (Postfix) with ESMTP id 622D326E68; Sun, 28 Sep 2014 22:24:16 +0200 (CEST) X-Virus-Scanned: amavisd-new at plaintext.sk Received: from shiva.plaintext.sk ([127.0.0.1]) by localhost (shiva.plaintext.sk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZQVoPAe1pQ8K; Sun, 28 Sep 2014 22:24:15 +0200 (CEST) Received: from shiva.plaintext.sk (shiva.plaintext.sk [85.248.156.6]) by shiva.plaintext.sk (Postfix) with ESMTP id 8603026E42; Sun, 28 Sep 2014 22:24:15 +0200 (CEST) Date: Sun, 28 Sep 2014 21:24:15 +0100 (GMT+01:00) From: =?utf-8?Q?Mat=C3=BA=C5=A1_Svr=C4=8Dek?= To: Victor Yegorov Cc: pgsql-performance@postgresql.org Message-ID: <1079665306.24081411935855264.JavaMail.root@shiva> In-Reply-To: <488838968.24061411935738421.JavaMail.root@shiva> Subject: Re: after upgrade 8.4->9.3 query is slow not using index scan MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: Zimbra 5.0.16_GA_2921.UBUNTU8_64 (ZimbraWebClient - FF3.0 (Linux)/5.0.16_GA_2921.UBUNTU8_64) X-Pg-Spam-Score: -2.5 (--) 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 Hello, at the moment, I am not able to replicate the results posted. Explain analy= ze results are very similar at the moment on both databases, query runtime = is also almost same. This has happened after re-running VACUUM ANALYZE VERBOSE. However, right a= fter the migration, I did run the script, which was generated by pg_upgrade= script, which should have ran VACUUM on the database, the script name is a= nalyze_new_cluster.sh.=20 Maybe after re-running vacuum analyze the statistics somehow changed? Case closed, thank You. -- Mat=C3=BA=C5=A1 Svr=C4=8Dek PlainText s.r.o. [www.plaintext.sk] svrcek@plaintext.sk ----- "Victor Yegorov" wrote: > 2014-09-26 17:04 GMT+03:00 Mat=C3=BA=C5=A1 Svr=C4=8Dek < svrcek@plaintext= .sk > : >=20 >=20 > I am having a performance issue after upgrade from 8.4.20-1 -> 9.3.5. >=20 >=20 > First, make sure you have your statistics up to date =E2=80=94 execute ma= nual > `VACUUM ANALYZE`. > And then provide `EXPLAIN analyze` for 8.4 and `EXPLAIN (analyze, > buffers)` for 9.3 output. >=20 >=20 >=20 > -- > Victor Y. Yegorov --=20 Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance