<?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; trim</title>
	<atom:link href="http://www.depesz.com/index.php/tag/trim/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.depesz.com</link>
	<description></description>
	<lastBuildDate>Thu, 09 Sep 2010 08:26:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>lpad() and rpad() gotcha</title>
		<link>http://www.depesz.com/index.php/2009/02/10/lpad-and-rpad-gotcha/</link>
		<comments>http://www.depesz.com/index.php/2009/02/10/lpad-and-rpad-gotcha/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 23:15:17 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gotcha]]></category>
		<category><![CDATA[length]]></category>
		<category><![CDATA[lpad]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[repeat]]></category>
		<category><![CDATA[rpad]]></category>
		<category><![CDATA[trim]]></category>
		<category><![CDATA[truncate]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=1379</guid>
		<description><![CDATA[I was lately writing some program for a client of mine, which used UPC codes matching. Since the codes are given in various ways, there was decision to pad the codes with leading zeros &#8211; up to 12 characters. The code has been done, and worked like this: # select lpad('123456789', 12, '0'); lpad -------------- [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/index.php/2009/02/10/lpad-and-rpad-gotcha/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Text comparisons that does automatic trim()</title>
		<link>http://www.depesz.com/index.php/2008/10/15/text-comparisons-that-does-automatic-trim/</link>
		<comments>http://www.depesz.com/index.php/2008/10/15/text-comparisons-that-does-automatic-trim/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 20:04:20 +0000</pubDate>
		<dc:creator>depesz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[datatype]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[trim]]></category>

		<guid isPermaLink="false">http://www.depesz.com/?p=1296</guid>
		<description><![CDATA[SoftNum asked on irc: &#60; SoftNum&#62; does postgresql have a config option to automatically trim (both ' ' from blah) on string compares? So, can you? Of course there is no such option, but maybe there is a way to tell PostgreSQL to do this trim for given field? Sure there is To do it, [...]]]></description>
		<wfw:commentRss>http://www.depesz.com/index.php/2008/10/15/text-comparisons-that-does-automatic-trim/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
