[prev in list] [next in list] [prev in thread] [next in thread]
List: postgresql-general
Subject: Statistics and Index Usage Data
From: Casey Meijer <cmeijer () strongestfamilies ! com>
Date: 2020-02-26 22:19:23
Message-ID: 07E867DB-D5ED-4A73-B667-A33B0F1AC075 () strongestfamilies ! com
[Download RAW message or body]
[Attachment #2 (text/plain)]
Hello all:
I'm curious if there are any ways to query custom/extended multivariate statistics \
usage? I tried a few web searches, but can't find anything there or in the docs. I \
imagine this simply isn't implemented (is it expensive to keep this data?), but just \
wanted to double check.
Also, is there any way to query index usage based on type of index (brin, gist, \
btree, etc.)? I couldn't see anything obvious to do so here: \
https://wiki.postgresql.org/wiki/Index_Maintenance#Summarize_keyspace_of_a_B-Tree_index
[FYI: Many of the links at the bottom of the above page (related to index pruning) \
fail on current versions of postgreSQL.]
Best I could come up with so far was a text search for the USING clause in indexdef \
of pg_indexes.
Thanks,
Casey Meijer
[Attachment #3 (text/html)]
<html xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-CA" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Hello \
all:<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt"><o:p> </o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US" style="font-size:11.0pt">I'm curious if there are any ways to query \
custom/extended multivariate statistics usage? I tried a few web searches, but \
can't find anything there or in the docs. I imagine this simply isn't \
implemented (is it expensive to keep this data?), but just wanted to double check. \
<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt"><o:p> </o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US" style="font-size:11.0pt">Also, is there any way to query index usage \
based on type of index (brin, gist, btree, etc.)? I couldn't see anything \
obvious to do so here: </span><a \
href="https://wiki.postgresql.org/wiki/Index_Maintenance#Summarize_keyspace_of_a_B-Tre \
e_index">https://wiki.postgresql.org/wiki/Index_Maintenance#Summarize_keyspace_of_a_B-Tree_index</a><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt"><o:p> </o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US" style="font-size:11.0pt">[FYI: Many of the links at the bottom of the \
above page (related to index pruning) fail on current versions of \
postgreSQL.]<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt"><o:p> </o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US" style="font-size:11.0pt">Best I could come up with so far was a text \
search for the USING clause in indexdef of pg_indexes.<o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt"><o:p> </o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt">Thanks,<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Casey \
Meijer<o:p></o:p></span></p> </div>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic