<?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>select * from depesz; &#187; aggregate</title>
	<atom:link href="http://www.depesz.com/tag/aggregate/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.depesz.com</link>
	<description></description>
	<lastBuildDate>Mon, 07 May 2012 20:34:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Getting unique elements</title>
		<link>http://www.depesz.com/2010/04/19/getting-unique-elements/</link>
		<comments>http://www.depesz.com/2010/04/19/getting-unique-elements/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 11:46:38 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[aggregate]]></category>
		<category><![CDATA[distinct]]></category>
		<category><![CDATA[group by]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[unique]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=1665</guid>
		<description><![CDATA[Let&#8217;s assume you have some simple database with &#8220;articles&#8221; &#8211; each article can be in many &#8220;categories&#8221;. And now you want to get list of all articles in given set of categories. Standard approach: select a.* from articles as a join articles_in_categories as aic on a.id = aic.article_id where aic.category_id in (14,62,70,53,138) Will return duplicated [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/2010/04/19/getting-unique-elements/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Waiting for 9.0 &#8211; string_agg</title>
		<link>http://www.depesz.com/2010/02/17/waiting-for-9-0-string_agg/</link>
		<comments>http://www.depesz.com/2010/02/17/waiting-for-9-0-string_agg/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 11:29:49 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[aggregate]]></category>
		<category><![CDATA[pg85]]></category>
		<category><![CDATA[pg90]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[string_agg]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=1597</guid>
		<description><![CDATA[On 1st of Februyary, Takahiro Itagaki committed a patch by Pavel Stehule which adds string_agg aggregate: Log Message: ----------- Add string_agg aggregate functions. The one argument version concatenates the input values into a string. The two argument version also does the same thing, but inserts delimiters between elements. &#160; Original patch by Pavel Stehule, reviewed [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/2010/02/17/waiting-for-9-0-string_agg/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Waiting for 8.5 &#8211; ordered aggregates</title>
		<link>http://www.depesz.com/2010/01/06/waiting-for-8-5-ordered-aggregates/</link>
		<comments>http://www.depesz.com/2010/01/06/waiting-for-8-5-ordered-aggregates/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 14:26:10 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[aggregate]]></category>
		<category><![CDATA[array_agg]]></category>
		<category><![CDATA[order]]></category>
		<category><![CDATA[pg85]]></category>
		<category><![CDATA[pg90]]></category>
		<category><![CDATA[postgresql]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=1568</guid>
		<description><![CDATA[On 15th of December Tom Lane committed patch by Andrew Gierth (aka RhodiumToad), which adds interesting capability: Log Message: ----------- Support ORDER BY within aggregate function calls, at long last providing a non-kluge method for controlling the order in which values are fed to an aggregate function. At the same time eliminate the old implementation [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/2010/01/06/waiting-for-8-5-ordered-aggregates/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Calculating median</title>
		<link>http://www.depesz.com/2009/07/13/calculating-median/</link>
		<comments>http://www.depesz.com/2009/07/13/calculating-median/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 14:13:36 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[aggregate]]></category>
		<category><![CDATA[dim]]></category>
		<category><![CDATA[irc]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[rhodiumtoad]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=1463</guid>
		<description><![CDATA[Today, on irc (#postgresql on freenode.net) Dim mentioned about writing median calculation code. It got me thinking, and consequently writing my version of median calculation code. Before I will go any further, let me just say &#8211; after I finished, and was quite happy with what I wrote, RhodiumToad showed his approach which is (of [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/2009/07/13/calculating-median/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Waiting for 8.4 &#8211; window functions</title>
		<link>http://www.depesz.com/2009/01/21/waiting-for-84-window-functions/</link>
		<comments>http://www.depesz.com/2009/01/21/waiting-for-84-window-functions/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 17:06:25 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[aggregate]]></category>
		<category><![CDATA[avg]]></category>
		<category><![CDATA[cumulative sum]]></category>
		<category><![CDATA[groups]]></category>
		<category><![CDATA[partitions]]></category>
		<category><![CDATA[pg84]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[rownum]]></category>
		<category><![CDATA[sum]]></category>
		<category><![CDATA[window functions]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=1369</guid>
		<description><![CDATA[A long overdue post about new functionality. At this moment it is no longer such new, as it was committed on 28th of December (yes, I know, I should have written it earlier, Sorry). On this day Tom Lane committed patch by Hitoshi Harada which adds support for so called window functions: Support window functions [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/2009/01/21/waiting-for-84-window-functions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Waiting for 8.4 &#8211; array aggregate and array unpacker</title>
		<link>http://www.depesz.com/2008/11/14/waiting-for-84-array-aggregate-and-array-unpacker/</link>
		<comments>http://www.depesz.com/2008/11/14/waiting-for-84-array-aggregate-and-array-unpacker/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 16:15:24 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[aggregate]]></category>
		<category><![CDATA[arrays]]></category>
		<category><![CDATA[array_agg]]></category>
		<category><![CDATA[pg84]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[unnest]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=1314</guid>
		<description><![CDATA[Finally, we got very important addons to PostgreSQL, which help with dealing with arrays. It solves a lot of problems, which were usually solved with standard cookbook code, which was in faqs, blog posts and number of examples on irc. First, there is a function to build array as aggregate. It was committed by Peter [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/2008/11/14/waiting-for-84-array-aggregate-and-array-unpacker/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

