<?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: Script to find list of Append Only or Append Optimized Tables	</title>
	<atom:link href="https://www.dbrnd.com/2017/07/greenplum-script-to-find-list-of-append-only-or-append-optimized-tables/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com/2017/07/greenplum-script-to-find-list-of-append-only-or-append-optimized-tables/</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Wed, 23 Jan 2019 19:08:46 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>
		By: Luiz F		</title>
		<link>https://www.dbrnd.com/2017/07/greenplum-script-to-find-list-of-append-only-or-append-optimized-tables/#comment-6858</link>

		<dc:creator><![CDATA[Luiz F]]></dc:creator>
		<pubDate>Wed, 23 Jan 2019 19:08:46 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=5577#comment-6858</guid>

					<description><![CDATA[Awesome script, I would only add the compress level, as a bonus:

SELECT   
	b.nspname&#124;&#124;&#039;.&#039;&#124;&#124;a.relname as TableName
	,case c.columnstore
		when &#039;f&#039; then &#039;Row Orientation&#039;        
		when &#039;t&#039; then &#039;Column Orientation&#039;
	end as TableStorageType
	,case COALESCE(c.compresstype,&#039;&#039;)
		when &#039;&#039; then &#039;No Compression&#039;        
		else c.compresstype
	end as CompressionType
       ,case COALESCE(c.compresslevel,&#039;&#039;)
		when &#039;&#039; then 0        
		else c.compresslevel
	end as CompressionLevel
FROM pg_class a
,pg_namespace b
,(select relid,segrelid,segidxid,columnstore,compresstype,compresslevel from pg_appendonly) c
WHERE b.oid=a.relnamespace
	and a.oid=c.relid]]></description>
			<content:encoded><![CDATA[<p>Awesome script, I would only add the compress level, as a bonus:</p>
<p>SELECT<br />
	b.nspname||&#8217;.&#8217;||a.relname as TableName<br />
	,case c.columnstore<br />
		when &#8216;f&#8217; then &#8216;Row Orientation&#8217;<br />
		when &#8216;t&#8217; then &#8216;Column Orientation&#8217;<br />
	end as TableStorageType<br />
	,case COALESCE(c.compresstype,&#8221;)<br />
		when &#8221; then &#8216;No Compression&#8217;<br />
		else c.compresstype<br />
	end as CompressionType<br />
       ,case COALESCE(c.compresslevel,&#8221;)<br />
		when &#8221; then 0<br />
		else c.compresslevel<br />
	end as CompressionLevel<br />
FROM pg_class a<br />
,pg_namespace b<br />
,(select relid,segrelid,segidxid,columnstore,compresstype,compresslevel from pg_appendonly) c<br />
WHERE b.oid=a.relnamespace<br />
	and a.oid=c.relid</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
