Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4BBO-0001Z6-HH for pgsql-admin@arkaria.postgresql.org; Tue, 08 Nov 2016 18:31:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c4BBO-0006bx-4H for pgsql-admin@arkaria.postgresql.org; Tue, 08 Nov 2016 18:31:42 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c4BBN-0006bo-IC for pgsql-admin@postgresql.org; Tue, 08 Nov 2016 18:31:41 +0000 Received: from nrccenhts1.nrc.ca ([132.246.15.88]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1c4BBJ-00083u-TW for pgsql-admin@postgresql.org; Tue, 08 Nov 2016 18:31:40 +0000 Received: from [132.246.194.15] (132.246.11.2) by nrccenhts1.nrc.ca (132.246.15.88) with Microsoft SMTP Server (TLS) id 8.3.348.2; Tue, 8 Nov 2016 13:31:33 -0500 Message-ID: <582219F1.9030502@nrc-cnrc.gc.ca> Date: Tue, 8 Nov 2016 10:31:13 -0800 From: ghiureai User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: "pgsql-admin@postgresql.org" Subject: PG 9..5 index performance Q's Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Hi List, running PGSQL 9.5.1 ( EL7) , we are seeing a issues with one of our SQL statement getting the wrong plan once in a while ( large temp tables being generate, exec time takes > 3 minutes compared with fastes plan < 1 min), we want to undestand why a new/ expensive plan is been used instead of efficient one, there are not data changes on the tables, any tips where to look? Second , I would like to know if when re-creating one index ( non pk ) on a large table with already existing indexes, are All tables statistics being re-generated? ( there is a way to control persistency of old stats?) Isabella -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin