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 1iZ33a-00038D-VD for pgsql-docs@arkaria.postgresql.org; Mon, 25 Nov 2019 01:20:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iZ33Z-0004Tu-M6 for pgsql-docs@arkaria.postgresql.org; Mon, 25 Nov 2019 01:20:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iZ33Z-0004Tn-EZ for pgsql-docs@lists.postgresql.org; Mon, 25 Nov 2019 01:20:49 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iZ33S-0004HU-HD for pgsql-docs@lists.postgresql.org; Mon, 25 Nov 2019 01:20:49 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 4753E679; Sun, 24 Nov 2019 20:20:40 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 24 Nov 2019 20:20:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=jXZZKU3OhC3ewGAmMQ75DAh6sFP WoAyyJ3pRggV7a40=; b=AtV1QJNTAvHMWX0CNYhDBRHjQk/Kxdw+zJ19UXW1sRw 9DKOsfReoi4Fa8N4dsN0IhHqb+wxywtx8e6gmwHL+zBe7KDCTVVUc3Xg10EOGnZg Lcmuj3o17xq37+kN03a/Egnyl2bs5QR+5KqjFhKK+vpT5ijKh7OsEEY6BkMm7alt T+eHzoFIn1lVcPPtge7e1dmT3sm/OYlKH8kUlhoTdZRmC8b7F3jIKYxY/m3kP4Ig nz6bFhJBTLZ6ZIIgPN5WLGeML3IA61iSxgDZccD8K2V7RaGNnvOXayNppcYEFm/b uS6kcrnYorgWecVWMENHsK+rEp5OeKQOiDP3JInSfbA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=jXZZKU 3OhC3ewGAmMQ75DAh6sFPWoAyyJ3pRggV7a40=; b=tr7/DHYe0CyvGGJ7zMI9fd 3Lszq8GQfM5c2Zj5WArp4O0IkMVtdmjRn/JyFiK1KbZ4rTSOsvhX2PWCD6huQlNQ ofi+PqY3QXvLa3X5T1zfbluIXxaADRX9eb1xRc2G5QXWjyyuP9FeBzVnxjRWK2IT YbeN9FAXaiKIXRq7nqPWrpcmTZ8fuib4KfDj36JBMBtG5bZ5VpH8neRkMvTrxcgh gqExiRmVB31k7+eJZk30FEFWh1ImokLsQSTTSk4f9Bitq1g9ierehVBSVpslnhT0 AYhkx91mk14ub5NzObaeiITYpzFxFA/2c7rqX3Lk9hOmhZ32xImZ5NJyXZjF1pNA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudehledgfeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlfeehmdenucfjughrpeffhf fvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhu ihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucffohhmrghinheprh gvugguihhtrdgtohhmnecukfhppeduuddurddutddvrddukedtrddukeehnecurfgrrhgr mhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id DF500306005C; Sun, 24 Nov 2019 20:20:38 -0500 (EST) Date: Mon, 25 Nov 2019 10:20:36 +0900 From: Michael Paquier To: jsalsman@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: monitoring-stats.html is too impenetrable Message-ID: <20191125012036.GC37821@paquier.xyz> References: <157458791863.7229.15011272113637426410@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PuGuTyElPB9bOcsM" Content-Disposition: inline In-Reply-To: <157458791863.7229.15011272113637426410@wrigleys.postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --PuGuTyElPB9bOcsM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Nov 24, 2019 at 09:31:58AM +0000, PG Doc comments form wrote: > There needs to be a tutorial page explaining how to use pg_stat_all_tables > to find missing indexes, or maybe just an example on monitoring-stats.html > which is hopelessly inaccessible to a non-expert. I would have never been > able to figure out anything close to the solution at > https://www.reddit.com/r/PostgreSQL/comments/e0rx8l/i_was_missing_a_single_index_and_omgf_everything/ > from the existing docs. Well, it may be as simple as that in some cases, but you also need to consider other parameters in more complex cases, like: - Actual CPU consumption done by backends. - Get stats about predicates (WHERE and JOIN clauses). - Physical disk access. - Anything else I don't have on top of my mind. > Thank you for your kind consideration of this > request; please do not hesitate to send instructions for how to submit a > pull request for this, as I would gladly do so. Best regards, -Jim The Postgres mailing lists are old-school regarding that, so pull requests sent to the git repository on github or such are not accepted. Sending an email with a patch would be just but fine, and here you would need to patch some of the *.sgml files in doc/. So if you have anything you'd like to get changed with fresh ideas, let's see how you would like things to change and then let's discuss about it. Thanks, -- Michael --PuGuTyElPB9bOcsM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl3bLGQACgkQnvQgOdby QH3loxAAjAL4XF9jBmeZirRePWQsaah61SfTkMsJa4KHnPd7h9NA1uFwdNe+uuT7 75hLN/y3BAruCYZJgVXdsoARuMce+mov8Br9PlGJTXqycNQ0o5ERjovKUCM3wO4X KerrDl8UAu3pozOGHj3mHzdF4oMAxOfWXU5Y+inCDiSwhcKcZ8EUA28BSQEkmplJ Wu3dNT1Ka/P4z/O1sHSl1He2fCiDsePL3P/IWzosd9QFSapj+sO8o+6tteMz+KVk cw2YZwS/Cors1OV4V7I53VzC3xpfPfI33vr5XAfvdCkgEiYyFSWBaojLpi08jpDg 6yVfhiFt+37gNmozZMyTWWkXXEufY3Nm3kQSvQMGECLtH+ZR5JtcYNcMZrtpqaDN RiFplpLjcM8h4qynBdcrXKaK98UR9b3ypuGMa2dQDd2Qm3d1LX6wJ1DMvE3hL6jd 2YwLATe1COwhPO4eRBdBpQuq+frt9JUin/IE+gexL5rI5Ar4UVq+P19/nyu9oS1j c3mj01dR+AOMXTeJM7+K+rnMsFUELHvJIba5NsOC7cRj/usxVHFYYy9ioCyCXajz 4ZvL7xtaQxMunoucJSY8MIXINe7x8tk5mpMP1npOuJ8YmMoVUUvCRxxuRbTb+xVK v0sx5lrjADjNUmlHlcGo//PVjI/CwpOqOC6VtepnEl2dRutkHL8= =bJfV -----END PGP SIGNATURE----- --PuGuTyElPB9bOcsM--