<?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; functions</title>
	<atom:link href="http://www.depesz.com/tag/functions/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>Waiting for 9.2 &#8211; Named parameters in SQL functions</title>
		<link>http://www.depesz.com/2012/02/13/waiting-for-9-2-named-parameters-in-sql-functions/</link>
		<comments>http://www.depesz.com/2012/02/13/waiting-for-9-2-named-parameters-in-sql-functions/#comments</comments>
		<pubDate>Mon, 13 Feb 2012 01:17:56 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[names]]></category>
		<category><![CDATA[parameters]]></category>
		<category><![CDATA[pg92]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=2412</guid>
		<description><![CDATA[On 5th of February, Tom Lane committed patch: Allow SQL-language functions to reference parameters by name. &#160; Matthew Draper, reviewed by Hitoshi Harada SQL language for writing functions has some benefits &#8211; including the fact that they are very simple, can be inlined, and are always available (pre 9.0 pl/PgSQL had to be specially installed [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/2012/02/13/waiting-for-9-2-named-parameters-in-sql-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grouping data into time ranges</title>
		<link>http://www.depesz.com/2010/10/22/grouping-data-into-time-ranges/</link>
		<comments>http://www.depesz.com/2010/10/22/grouping-data-into-time-ranges/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 12:27:13 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[group by]]></category>
		<category><![CDATA[groups]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[range]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[timestamp]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=1882</guid>
		<description><![CDATA[Today some guy on IRC asked question, which I didn&#8217;t fully understand, but which could (probably) be summarized: how to group data into 5 minute intervals, based on some timestamp column. Well, it seems trivial (as long as you know how to do it), but since he clearly didn&#8217;t know how to do it (or [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/2010/10/22/grouping-data-into-time-ranges/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Waiting for 9.1 &#8211; ALTER TYPE</title>
		<link>http://www.depesz.com/2010/10/16/waiting-for-9-1-alter-type/</link>
		<comments>http://www.depesz.com/2010/10/16/waiting-for-9-1-alter-type/#comments</comments>
		<pubDate>Sat, 16 Oct 2010 18:43:47 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[alter]]></category>
		<category><![CDATA[alter type]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[pg91]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[srf]]></category>
		<category><![CDATA[type]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=1856</guid>
		<description><![CDATA[On 26th of September, Peter Eisentraut committed patch which adds: Add ALTER TYPE ... ADD/DROP/ALTER/RENAME ATTRIBUTE &#160; Like with tables, this also requires allowing the existence of composite types with zero attributes. &#160; reviewed by KaiGai Kohei Custom types, do not get much coverage, but I personally like them. I much prefer to use them [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/2010/10/16/waiting-for-9-1-alter-type/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Waiting for 8.5 &#8211; Named function arguments</title>
		<link>http://www.depesz.com/2009/11/17/waiting-for-8-5-named-function-arguments/</link>
		<comments>http://www.depesz.com/2009/11/17/waiting-for-8-5-named-function-arguments/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 00:41:51 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[named arguments]]></category>
		<category><![CDATA[pg85]]></category>
		<category><![CDATA[pg90]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[plpython]]></category>
		<category><![CDATA[postgresql]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=1545</guid>
		<description><![CDATA[Pavel Stehule &#8211; hero for everybody writing stored procedures, wrote, and later Tom Lane committed patch which adds named arguments for functions: Log Message: ----------- Support use of function argument names to identify which actual arguments match which function parameters. The syntax uses AS, for example funcname(value AS arg1, anothervalue AS arg2) &#160; Pavel Stehule [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/2009/11/17/waiting-for-8-5-named-function-arguments/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Waiting for 8.4 &#8211; Default values for function arguments + integer in any base</title>
		<link>http://www.depesz.com/2008/12/09/waiting-for-84-default-values-for-function-arguments-integer-in-any-base/</link>
		<comments>http://www.depesz.com/2008/12/09/waiting-for-84-default-values-for-function-arguments-integer-in-any-base/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 12:31:36 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[base]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[integer]]></category>
		<category><![CDATA[pg84]]></category>
		<category><![CDATA[postgresql]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=1355</guid>
		<description><![CDATA[On 4th of December Peter Eisentraut committed patch by Pavel Stehule (with Peters tweaks) which adds default values for function arguments: Default values for function arguments &#160; Pavel Stehule, with some tweaks by Peter Eisentraut Well, the functionality is pretty obvious, so let&#8217;s see how to use it in real code. To do so I&#8217;ll [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/2008/12/09/waiting-for-84-default-values-for-function-arguments-integer-in-any-base/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting list of most common domains</title>
		<link>http://www.depesz.com/2008/12/01/getting-list-of-most-common-domains/</link>
		<comments>http://www.depesz.com/2008/12/01/getting-list-of-most-common-domains/#comments</comments>
		<pubDate>Sun, 30 Nov 2008 22:03:02 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[irc]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[report]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=1330</guid>
		<description><![CDATA[Today, on #postgresql on IRC, guy (can&#8217;t contact him now to get his permission to name him), said: I have a table called problematic_hostnames. It contains a list of banned hostnames in column &#8220;hostname&#8221; (varchar). I would like to display the top 10 troll ISPs based on this. Does PG have a way of spotting [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/2008/12/01/getting-list-of-most-common-domains/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Waiting for 8.4 &#8211; sql-wrappable RETURNING</title>
		<link>http://www.depesz.com/2008/11/03/waiting-for-84-sql-wrappable-returning/</link>
		<comments>http://www.depesz.com/2008/11/03/waiting-for-84-sql-wrappable-returning/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 12:37:16 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[pg84]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[returning]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=1307</guid>
		<description><![CDATA[In PostgreSQL 8.2, we got &#8220;RETURNING&#8221; clause in INSERT/UPDATE/DELETE queries. Unfortunately it could not be used as source of rows for anything in sql. insert into table_backup delete from table where ... returning *; Well, it&#8217;s still not possible, but it is a one step closer, thanks to patch written and committed by Tom Lane [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/2008/11/03/waiting-for-84-sql-wrappable-returning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Waiting for 8.4 &#8211; pl/* srf functions in selects</title>
		<link>http://www.depesz.com/2008/11/03/waiting-for-84-pl-srf-functions-in-selects/</link>
		<comments>http://www.depesz.com/2008/11/03/waiting-for-84-pl-srf-functions-in-selects/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 12:03:01 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[pg84]]></category>
		<category><![CDATA[pl/*]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[select]]></category>
		<category><![CDATA[srf]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=1305</guid>
		<description><![CDATA[On 28th of October Tom Lane committed his patch that changes some internals of functions, but it also adds interesting capability. Commit message: Extend ExecMakeFunctionResult() to support set-returning functions that return via a tuplestore instead of value-per-call. Refactor a few things to reduce ensuing code duplication with nodeFunctionscan.c. This represents the reasonably noncontroversial part of [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/2008/11/03/waiting-for-84-pl-srf-functions-in-selects/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Waiting for 8.4 &#8211; \ef in psql</title>
		<link>http://www.depesz.com/2008/09/06/waiting-for-84-ef-in-psql/</link>
		<comments>http://www.depesz.com/2008/09/06/waiting-for-84-ef-in-psql/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 19:45:46 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[pg84]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[psql]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=1251</guid>
		<description><![CDATA[Today, Tom Lane committed patch, written by Abhijit Menon-Sen, which adds interesting feature to psql. Namely &#8211; it simplifies changing definition of functions. Commit message pretty much explains everything: Implement a psql command "\ef" to edit the definition of a function. In support of that, create a backend function pg_get_functiondef(). The psql command is functional [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/2008/09/06/waiting-for-84-ef-in-psql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Waiting for 8.4 &#8211; RETURNS TABLE</title>
		<link>http://www.depesz.com/2008/08/04/waiting-for-84-returns-table/</link>
		<comments>http://www.depesz.com/2008/08/04/waiting-for-84-returns-table/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 12:21:53 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[pg84]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[returns]]></category>
		<category><![CDATA[srf]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=1229</guid>
		<description><![CDATA[Pavel Stehule wrote, and Tom Lane committed patch which ads new syntax for set-returning functions: &#8220;RETURNS TABLE&#8221;. Commit was on 18th of July, and the message was: Implement SQL-spec RETURNS TABLE syntax for functions. &#160; (Unlike the original submission, this patch treats TABLE output parameters as being entirely equivalent to OUT parameters -- tgl) &#160; [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/2008/08/04/waiting-for-84-returns-table/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Waiting for 8.4 &#8211; variadic functions</title>
		<link>http://www.depesz.com/2008/07/31/waiting-for-84-variadic-functions/</link>
		<comments>http://www.depesz.com/2008/07/31/waiting-for-84-variadic-functions/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 13:14:15 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[pg84]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[variadic]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=1223</guid>
		<description><![CDATA[Pavel Stehule wrote, and then Tom Lane committed (on 16th of July), patch which adds to PostgreSQL support for functions with variable number of arguments. These function are called &#8220;VARIADIC&#8221;, and up until now writing such a function was impossible. You could overcome this limitation by: defining a lot of functions with the same name, [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/2008/07/31/waiting-for-84-variadic-functions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Conditional DDL?</title>
		<link>http://www.depesz.com/2008/06/18/conditional-ddl/</link>
		<comments>http://www.depesz.com/2008/06/18/conditional-ddl/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 12:53:23 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[conditions]]></category>
		<category><![CDATA[ddl]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=1217</guid>
		<description><![CDATA[Every now and then I see people ask the question &#8211; how to create table if it doesn&#8217;t exist yet, how to drop it, but only if it does exist and so on. Well, starting from 8.2 dropping should be not a problem anymore. But what about create? Alter? Let&#8217;s try to do it&#8230; First [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/2008/06/18/conditional-ddl/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Waiting for 8.4 &#8211; function stats</title>
		<link>http://www.depesz.com/2008/05/15/waiting-for-84-function-stats/</link>
		<comments>http://www.depesz.com/2008/05/15/waiting-for-84-function-stats/#comments</comments>
		<pubDate>Thu, 15 May 2008 15:33:36 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[pg84]]></category>
		<category><![CDATA[pg_stat_user_functions]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[profiling]]></category>
		<category><![CDATA[statistics]]></category>
		<category><![CDATA[track_functions]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=1206</guid>
		<description><![CDATA[Today another great patch, committed by Tom Lane. This patch was written by Martin Pihlak (with some edits by Tom). Commit log: Add support for tracking call counts and elapsed runtime for user-defined functions. Note that because this patch changes FmgrInfo, any external C functions you might be testing with 8.4 will need to be [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/2008/05/15/waiting-for-84-function-stats/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

