<?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>Unfinished Website &#187; Uncategorized</title>
	<atom:link href="http://www.unfinishedwebsite.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unfinishedwebsite.com</link>
	<description>This website is never finished</description>
	<lastBuildDate>Fri, 13 Jan 2012 06:55:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PostgreSQL Rows to Columns</title>
		<link>http://www.unfinishedwebsite.com/uncategorized/postgres-rows-to-columns/</link>
		<comments>http://www.unfinishedwebsite.com/uncategorized/postgres-rows-to-columns/#comments</comments>
		<pubDate>Tue, 16 Nov 2010 00:59:22 +0000</pubDate>
		<dc:creator>Tommy Unger</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.unfinishedwebsite.com/?p=89</guid>
		<description><![CDATA[Postgres always surprises me with its robustness and cutting edge developments and extensions.  postgis was years ahead of the competition.  I&#8217;ve recently discovered that PostgreSQL offers the rather sweet feature of aggregating multiple rows into an array, and then the implode-like feature of array_to_string to complete the coolness.
The problem for me was simply [...]]]></description>
			<content:encoded><![CDATA[<p>Postgres always surprises me with its robustness and cutting edge developments and extensions.  postgis was years ahead of the competition.  I&#8217;ve recently discovered that PostgreSQL offers the rather sweet feature of aggregating multiple rows into an array, and then the implode-like feature of array_to_string to complete the coolness.</p>
<p>The problem for me was simply finding it again.  I&#8217;d made a number of searches, including:</p>
<ul style=''>
<li>postgres rows to columns</li>
<li>postgres rows to columns array_to_string</li>
<li>postgres rows to columns separator</li>
<li>postgres rows to aggregate</li>
<li>postgres rows to group</li>
<li>postgres rows to array</li>
</ul>
<p>The last one was the key which lead me to <a href="http://stackoverflow.com/questions/533256/concatenate-multiple-rows-in-an-array-with-sql-on-postgresql">stack overflow</a>, and was just what I was looking for.</p>
<p><code>CREATE AGGREGATE array_accum (anyelement)<br />
(<br />
sfunc = array_append,<br />
stype = anyarray,<br />
initcond = '{}'<br />
);<br />
</code></p>
<p>Once I&#8217;ve created that function, I can now do this to turn my rows into a comma separated list:<br />
<code>SELECT array_to_string(array_accum(engine_name), ', ')<br />
FROM search_engine<br />
</code><br />
which turns this:<br />
Bing<br />
Google<br />
into this:<br />
Bing, Google</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unfinishedwebsite.com/uncategorized/postgres-rows-to-columns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSharp Cassandra Client</title>
		<link>http://www.unfinishedwebsite.com/uncategorized/csharp-cassandra-client/</link>
		<comments>http://www.unfinishedwebsite.com/uncategorized/csharp-cassandra-client/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 05:02:03 +0000</pubDate>
		<dc:creator>Tommy Unger</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.unfinishedwebsite.com/?p=83</guid>
		<description><![CDATA[I was surprised to see how hard it is to find a csharp (C#) cassandra client library.  There were 50 step processes and incomplete libraries galore.  But somehow I finally ran across hectorsharp.  It met all my needs and is working like a charm.  Throw in the JsonFx library for parsing [...]]]></description>
			<content:encoded><![CDATA[<p>I was surprised to see how hard it is to find a csharp (C#) cassandra client library.  There were 50 step processes and incomplete libraries galore.  But somehow I finally ran across <a href="http://hectorsharp.com/">hectorsharp</a>.  It met all my needs and is working like a charm.  Throw in the JsonFx library for parsing my JSON returned from Cassandra and I&#8217;m good to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unfinishedwebsite.com/uncategorized/csharp-cassandra-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

