<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Greenplum: gp_stats_missing to get the list of pending ANALYZE of Tables	</title>
	<atom:link href="https://www.dbrnd.com/2018/02/greenplum-gp_stats_missing-to-get-the-list-of-pending-analyze-of-tables-gp_toolkit-gp_stats_missing/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com/2018/02/greenplum-gp_stats_missing-to-get-the-list-of-pending-analyze-of-tables-gp_toolkit-gp_stats_missing/</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Tue, 06 Feb 2018 18:50:45 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>
		By: Anvesh Patel		</title>
		<link>https://www.dbrnd.com/2018/02/greenplum-gp_stats_missing-to-get-the-list-of-pending-analyze-of-tables-gp_toolkit-gp_stats_missing/#comment-6192</link>

		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Tue, 06 Feb 2018 18:50:45 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=4424#comment-6192</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.dbrnd.com/2018/02/greenplum-gp_stats_missing-to-get-the-list-of-pending-analyze-of-tables-gp_toolkit-gp_stats_missing/#comment-6191&quot;&gt;Anuraag&lt;/a&gt;.

Nice explanation, 
Thank you]]></description>
			<content:encoded><![CDATA[<p>Nice explanation,<br />
Thank you</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Anuraag		</title>
		<link>https://www.dbrnd.com/2018/02/greenplum-gp_stats_missing-to-get-the-list-of-pending-analyze-of-tables-gp_toolkit-gp_stats_missing/#comment-6191</link>

		<dc:creator><![CDATA[Anuraag]]></dc:creator>
		<pubDate>Tue, 06 Feb 2018 18:49:14 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=4424#comment-6191</guid>

					<description><![CDATA[Hi Anvesh,

Hope you are doing good. 

I have gone through the post related to &quot;Greenplum: gp_stats_missing to get the list of pending ANALYZE of Tables&quot; and you mentioned that 
&quot;
A column “smisize” is an important column to check the status of table statistics. 
If it contains value ‘f’, a table does not have row count and row sizing statistics recorded in the system catalog, which indicates that the table needs to be analyzed

&quot;
In the below pivotal link, they mentioned that 
&quot;smisize = &quot;t&quot; meaning relpages or reltuples are not zero , &quot;f&quot; means either relpages or reltuples are zero
 smicols = Number of columns in the table 
 smirecs = number of column in the table that has statistics information in the pg_statistic table
 &quot;
From what I understand, if a table has entry in the view then 
   1. Table has no statistics and should perform analyze operation
   2. Table has &quot;0&quot; records and that will be showed in &quot;smisize&quot; column. Even after analyze operation, table will not be removed from the view as it has zero records

Some useful points:
1. gp_stats_missing tells you which table needs statistics/analyze if table with data have not been analyzed anytime in its lifecycle / or when the table has altered to add / drop column.
2. gp_stats_missing doesn&#039;t remove the entry from its view when the table has no rows / or when tuples / pages has been reduced to zero after deleting of data
3. gp_stats_missing doesn&#039;t tell you if the table needs statistics after updates / delete / bulk loading of data , since it only checks for relpages / reltuples = 0]]></description>
			<content:encoded><![CDATA[<p>Hi Anvesh,</p>
<p>Hope you are doing good. </p>
<p>I have gone through the post related to &#8220;Greenplum: gp_stats_missing to get the list of pending ANALYZE of Tables&#8221; and you mentioned that<br />
&#8221;<br />
A column “smisize” is an important column to check the status of table statistics.<br />
If it contains value ‘f’, a table does not have row count and row sizing statistics recorded in the system catalog, which indicates that the table needs to be analyzed</p>
<p>&#8221;<br />
In the below pivotal link, they mentioned that<br />
&#8220;smisize = &#8220;t&#8221; meaning relpages or reltuples are not zero , &#8220;f&#8221; means either relpages or reltuples are zero<br />
 smicols = Number of columns in the table<br />
 smirecs = number of column in the table that has statistics information in the pg_statistic table<br />
 &#8221;<br />
From what I understand, if a table has entry in the view then<br />
   1. Table has no statistics and should perform analyze operation<br />
   2. Table has &#8220;0&#8221; records and that will be showed in &#8220;smisize&#8221; column. Even after analyze operation, table will not be removed from the view as it has zero records</p>
<p>Some useful points:<br />
1. gp_stats_missing tells you which table needs statistics/analyze if table with data have not been analyzed anytime in its lifecycle / or when the table has altered to add / drop column.<br />
2. gp_stats_missing doesn&#8217;t remove the entry from its view when the table has no rows / or when tuples / pages has been reduced to zero after deleting of data<br />
3. gp_stats_missing doesn&#8217;t tell you if the table needs statistics after updates / delete / bulk loading of data , since it only checks for relpages / reltuples = 0</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
