<?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>Append Optimized &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/append-optimized/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>Thu, 29 Jun 2017 19:02:19 +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 find list of Append Only or Append Optimized Tables</title>
		<link>https://www.dbrnd.com/2017/07/greenplum-script-to-find-list-of-append-only-or-append-optimized-tables/</link>
					<comments>https://www.dbrnd.com/2017/07/greenplum-script-to-find-list-of-append-only-or-append-optimized-tables/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 06 Jul 2017 16:16:50 +0000</pubDate>
				<category><![CDATA[Greenplum]]></category>
		<category><![CDATA[Greenplum DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[Append Only]]></category>
		<category><![CDATA[Append Optimized]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></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[PostgreSQL 8.2]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=5577</guid>

					<description><![CDATA[In this post, I am sharing a script to find a list of Append Only or Append Optimized tables of Greenplum. Before Greenplum 4.3, when you create Append only table, you can only perform insert and select on that table. But from Greenplum 4.3, now you can perform UPDATE as well but still Append Only [&#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%2F07%2Fgreenplum-script-to-find-list-of-append-only-or-append-optimized-tables%2F&amp;linkname=Greenplum%3A%20Script%20to%20find%20list%20of%20Append%20Only%20or%20Append%20Optimized%20Tables" 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%2F07%2Fgreenplum-script-to-find-list-of-append-only-or-append-optimized-tables%2F&amp;linkname=Greenplum%3A%20Script%20to%20find%20list%20of%20Append%20Only%20or%20Append%20Optimized%20Tables" 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%2F07%2Fgreenplum-script-to-find-list-of-append-only-or-append-optimized-tables%2F&amp;linkname=Greenplum%3A%20Script%20to%20find%20list%20of%20Append%20Only%20or%20Append%20Optimized%20Tables" 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%2F07%2Fgreenplum-script-to-find-list-of-append-only-or-append-optimized-tables%2F&amp;linkname=Greenplum%3A%20Script%20to%20find%20list%20of%20Append%20Only%20or%20Append%20Optimized%20Tables" 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%2F07%2Fgreenplum-script-to-find-list-of-append-only-or-append-optimized-tables%2F&amp;linkname=Greenplum%3A%20Script%20to%20find%20list%20of%20Append%20Only%20or%20Append%20Optimized%20Tables" 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%2F07%2Fgreenplum-script-to-find-list-of-append-only-or-append-optimized-tables%2F&amp;linkname=Greenplum%3A%20Script%20to%20find%20list%20of%20Append%20Only%20or%20Append%20Optimized%20Tables" 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%2F07%2Fgreenplum-script-to-find-list-of-append-only-or-append-optimized-tables%2F&#038;title=Greenplum%3A%20Script%20to%20find%20list%20of%20Append%20Only%20or%20Append%20Optimized%20Tables" data-a2a-url="https://www.dbrnd.com/2017/07/greenplum-script-to-find-list-of-append-only-or-append-optimized-tables/" data-a2a-title="Greenplum: Script to find list of Append Only or Append Optimized Tables"></a></p><p>In this post, I am sharing a script to find a list of Append Only or Append Optimized tables of Greenplum.</p>
<blockquote><p>Before Greenplum 4.3, when you create Append only table, you can only perform insert and select on that table.<br />
But from Greenplum 4.3, now you can perform UPDATE as well but still Append Only is efficient storage.</p></blockquote>
<p>The Append Only tables are faster and also it reduces the disk usage by compressing the data size. You can use below script to find a list of Append only tables.</p>
<pre class="crayon-plain-tag">SELECT   
	b.nspname||'.'||a.relname as TableName
	,case c.columnstore
		when 'f' then 'Row Orientation'        
		when 't' then 'Column Orientation'
	end as TableStorageType
	,case COALESCE(c.compresstype,'')
		when '' then 'No Compression'        
		else c.compresstype
	end as CompressionType
FROM pg_class a
,pg_namespace b
,(select relid,segrelid,segidxid,columnstore,compresstype from pg_appendonly) c
WHERE b.oid=a.relnamespace
	and a.oid=c.relid</pre> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2017/07/greenplum-script-to-find-list-of-append-only-or-append-optimized-tables/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
