Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1giwXU-0007Ih-SK for pgsql-performance@arkaria.postgresql.org; Mon, 14 Jan 2019 07:20:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1giwXS-0000Nh-UH for pgsql-performance@arkaria.postgresql.org; Mon, 14 Jan 2019 07:20:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1giwXS-0000NN-EC for pgsql-performance@lists.postgresql.org; Mon, 14 Jan 2019 07:20:02 +0000 Received: from mout.kundenserver.de ([217.72.192.74]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1giwXK-0001MG-Og for pgsql-performance@lists.postgresql.org; Mon, 14 Jan 2019 07:20:01 +0000 Received: from [10.8.0.101] ([185.40.248.10]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPSA (Nemesis) id 1MfYHW-1hBeZz1Qc4-00g2be for ; Mon, 14 Jan 2019 08:19:51 +0100 Subject: Re: Detect missing combined indexes (automatically) To: pgsql-performance@lists.postgresql.org References: From: Thomas Kellerer Message-ID: <1154619c-9abc-c39c-c800-ef19b8f37aa6@gmx.net> Date: Mon, 14 Jan 2019 08:19:50 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:GVmnfhtpWJ2Jtgpe7MsVDDEat99pFe9HW0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help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Güttler schrieb am 10.01.2019 um 13:56: > Is there a way to detect missing combined indexes automatically > > I am managing a lot of databases and I think a lot of performance > could get gained. > > But I don't want to do this manually. > > My focus is on missing combined indexes, since for missing > single indexes there are already tools available. The PoWA monitoring tool contains an extension to suggest missing indexes. I don't know if that includes multi-column indexes though, but it might be worth a try: https://powa.readthedocs.io/en/latest/stats_extensions/pg_qualstats.html Thomas