<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>pg_total_relation_size &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/pg_total_relation_size/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Fri, 22 Sep 2017 20:42:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>Greenplum: Script to check the size of Database, Schema and Table (Using gp_toolkit schema)</title>
		<link>https://www.dbrnd.com/2017/11/greenplum-script-to-check-the-size-of-database-schema-and-table-using-gp_toolkit-schema/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sat, 18 Nov 2017 16:16:33 +0000</pubDate>
				<category><![CDATA[Greenplum]]></category>
		<category><![CDATA[Greenplum DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[gp_size_of_database]]></category>
		<category><![CDATA[gp_size_of_schema_disk]]></category>
		<category><![CDATA[gp_toolkit]]></category>
		<category><![CDATA[Greenplum Administrator]]></category>
		<category><![CDATA[Greenplum Error]]></category>
		<category><![CDATA[Greenplum Monitoring]]></category>
		<category><![CDATA[Greenplum Performance Tuning]]></category>
		<category><![CDATA[Greenplum Programming]]></category>
		<category><![CDATA[Greenplum Query]]></category>
		<category><![CDATA[Greenplum Tips and Tricks]]></category>
		<category><![CDATA[pg_size_pretty]]></category>
		<category><![CDATA[pg_total_relation_size]]></category>
		<category><![CDATA[PostgreSQL 8.2]]></category>
		<category><![CDATA[schema]]></category>
		<category><![CDATA[Table]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=6118</guid>

					<description><![CDATA[In this post, I am sharing a few scripts for checking the size of Database, Schema and Table of Greenplum Server. Here, I am doing this exercise using the views of the gp_toolkit schema of Greenplum. Check the size of database in MB, GB and TB: [crayon-6a9f540f7033b140885641/] Checkt the size of database in MB, GB [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-script-to-check-the-size-of-database-schema-and-table-using-gp_toolkit-schema%2F&amp;linkname=Greenplum%3A%20Script%20to%20check%20the%20size%20of%20Database%2C%20Schema%20and%20Table%20%28Using%20gp_toolkit%20schema%29" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-script-to-check-the-size-of-database-schema-and-table-using-gp_toolkit-schema%2F&amp;linkname=Greenplum%3A%20Script%20to%20check%20the%20size%20of%20Database%2C%20Schema%20and%20Table%20%28Using%20gp_toolkit%20schema%29" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-script-to-check-the-size-of-database-schema-and-table-using-gp_toolkit-schema%2F&amp;linkname=Greenplum%3A%20Script%20to%20check%20the%20size%20of%20Database%2C%20Schema%20and%20Table%20%28Using%20gp_toolkit%20schema%29" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-script-to-check-the-size-of-database-schema-and-table-using-gp_toolkit-schema%2F&amp;linkname=Greenplum%3A%20Script%20to%20check%20the%20size%20of%20Database%2C%20Schema%20and%20Table%20%28Using%20gp_toolkit%20schema%29" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-script-to-check-the-size-of-database-schema-and-table-using-gp_toolkit-schema%2F&amp;linkname=Greenplum%3A%20Script%20to%20check%20the%20size%20of%20Database%2C%20Schema%20and%20Table%20%28Using%20gp_toolkit%20schema%29" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-script-to-check-the-size-of-database-schema-and-table-using-gp_toolkit-schema%2F&amp;linkname=Greenplum%3A%20Script%20to%20check%20the%20size%20of%20Database%2C%20Schema%20and%20Table%20%28Using%20gp_toolkit%20schema%29" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-script-to-check-the-size-of-database-schema-and-table-using-gp_toolkit-schema%2F&#038;title=Greenplum%3A%20Script%20to%20check%20the%20size%20of%20Database%2C%20Schema%20and%20Table%20%28Using%20gp_toolkit%20schema%29" data-a2a-url="https://www.dbrnd.com/2017/11/greenplum-script-to-check-the-size-of-database-schema-and-table-using-gp_toolkit-schema/" data-a2a-title="Greenplum: Script to check the size of Database, Schema and Table (Using gp_toolkit schema)"></a></p><p>In this post, I am sharing a few scripts for checking the size of Database, Schema and Table of Greenplum Server. </p>
<p>Here, I am doing this exercise using the views of the gp_toolkit schema of Greenplum. </p>
<p><strong>Check the size of database in MB, GB and TB:</strong></p>
<pre class="crayon-plain-tag">SELECT sodddatname, (sodddatsize/1048576) AS Sizein_MB
FROM gp_toolkit.gp_size_of_database;
 
SELECT sodddatname, (sodddatsize/1073741824) AS Sizein_GB
FROM gp_toolkit.gp_size_of_database;
 
SELECT sodddatname, (sodddatsize/1073741824)/1024 AS Sizein_TB
FROM gp_toolkit.gp_size_of_database;</pre> </p>
<p><strong>Checkt the size of database in MB, GB and TB:</strong></p>
<pre class="crayon-plain-tag">SELECT sosdnsp, (sosdschematablesize/1048576) AS Sizein_MB
FROM gp_toolkit.gp_size_of_schema_disk;
 
SELECT sosdnsp, (sosdschematablesize/1073741824) AS Sizein_GB
FROM gp_toolkit.gp_size_of_schema_disk;
 
SELECT sosdnsp, (sosdschematablesize/1073741824)/1024 AS Sizein_TB
FROM gp_toolkit.gp_size_of_schema_disk;</pre> </p>
<p><strong>Check the size of any Table or Index:</strong></p>
<pre class="crayon-plain-tag">SELECT pg_size_pretty(pg_total_relation_size('schema_name.table_name'));</pre> </p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
