<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>ads' corner - Code Snippets</title>
    <link>http://andreas.scherbaum.la/blog/</link>
    <description>a place to store my stuff</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.5.1 - http://www.s9y.org/</generator>
    <pubDate>Wed, 08 Oct 2008 21:23:46 GMT</pubDate>

    <image>
        <url>http://andreas.scherbaum.la/blog/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: ads' corner - Code Snippets - a place to store my stuff</title>
        <link>http://andreas.scherbaum.la/blog/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Single line input for psql copy command</title>
    <link>http://andreas.scherbaum.la/blog/archives/456-Single-line-input-for-psql-copy-command.html</link>
            <category>Code Snippets</category>
            <category>Perl</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/456-Single-line-input-for-psql-copy-command.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=456</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=456</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;break&quot;&gt;
&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;p&gt;I have the following problem:&lt;/p&gt;&lt;p&gt;A database server and another client machine. I have to execute several \copy commands in psql on the client machine to retrieve data and store the output in CSV files. The PostgreSQL COPY command is not an option because it stores the results on the database server, not the client machine. All \copy commands are executed from several files containing SQL commands, which are concated together by a makefile and feeded into psql. So far so good.&lt;/p&gt;&lt;p&gt;My SELECT commands used in the \copy are a bit more complicated and \copy requires to have the entire command on a single line. That can be done in two ways:&lt;/p&gt;&lt;p&gt;- Write the entire command in a single line. But that&#039;s hard to debug :-(&lt;/p&gt;&lt;p&gt;- Write the command as i like it and remove the linebreaks before feeding the command into psql.&lt;/p&gt;&lt;/font&gt;&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://andreas.scherbaum.la/blog/archives/456-Single-line-input-for-psql-copy-command.html#extended&quot;&gt;Continue reading &quot;Single line input for psql copy command&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 08 Oct 2008 22:26:05 +0200</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/456-guid.html</guid>
    <category>Code snippets</category>
<category>Perl</category>
<category>PostgreSQL</category>
<category>psql</category>

</item>
<item>
    <title>role ... cannot be dropped because some objects depend on it</title>
    <link>http://andreas.scherbaum.la/blog/archives/439-role-...-cannot-be-dropped-because-some-objects-depend-on-it.html</link>
            <category>Code Snippets</category>
            <category>PostgreSQL News</category>
            <category>SQL</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/439-role-...-cannot-be-dropped-because-some-objects-depend-on-it.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=439</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=439</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;break&quot;&gt;
I want to &lt;a target=&quot;_blank&quot; href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=6070&amp;amp;entry_id=439&quot; title=&quot;http://www.postgresql.org/docs/8.3/interactive/sql-droprole.html&quot;  onmouseover=&quot;window.status=&#039;http://www.postgresql.org/docs/8.3/interactive/sql-droprole.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;drop a ROLE&lt;/a&gt; (previously USER/GROUPs) which is still referenced by object(s) in my database. But &lt;a title=&quot;The PostgreSQL Project&quot; target=&quot;_blank&quot; href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=6071&amp;amp;entry_id=439&quot;  onmouseover=&quot;window.status=&#039;http://www.postgresql.org/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;PostgreSQL&lt;/a&gt; has objections:&lt;br /&gt;&lt;br /&gt;&lt;address&gt;ERROR:  role &amp;quot;xyz&amp;quot; cannot be dropped because some objects depend on it&lt;/address&gt;&lt;address&gt;DETAIL:  access to schema public&lt;/address&gt;&lt;br /&gt;&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://andreas.scherbaum.la/blog/archives/439-role-...-cannot-be-dropped-because-some-objects-depend-on-it.html#extended&quot;&gt;Continue reading &quot;role ... cannot be dropped because some objects depend on it&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 10 Sep 2008 20:11:07 +0200</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/439-guid.html</guid>
    <category>Code snippets</category>
<category>PostgreSQL</category>

</item>
<item>
    <title>table size, database size</title>
    <link>http://andreas.scherbaum.la/blog/archives/282-table-size,-database-size.html</link>
            <category>Code Snippets</category>
            <category>PostgreSQL News</category>
            <category>SQL</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/282-table-size,-database-size.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=282</wfw:comment>

    <slash:comments>15</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=282</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;break&quot;&gt;
&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;I have seen this question &lt;a href=&quot;http://andreas.scherbaum.la/blog/exit.php?url=aHR0cDovL3d3dy5wb3N0Z3Jlc3FsZm9ydW1zLmNvbS9mb3J1bXMvdmlld3RvcGljLnBocD9mPTQyJnQ9NDE3&amp;amp;entry_id=282&quot;  onmouseover=&quot;window.status=&#039;http://www.postgresqlforums.com/forums/viewtopic.php?f=42&amp;amp;t=417&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot; title=&quot;Posting on postgresqlforums.com&quot;&gt;more than once&lt;/a&gt; in the past: &amp;quot;How much storage space do i need for my table?&amp;quot;&lt;br /&gt;PostgreSQL can give you &lt;a href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=5065&amp;amp;entry_id=282&quot;  onmouseover=&quot;window.status=&#039;http://www.postgresql.org/docs/current/static/functions-admin.html#FUNCTIONS-ADMIN-DBSIZE&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot; title=&quot;PostgreSQL documentation for the current version&quot;&gt;this information&lt;/a&gt;.&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;The storage space (in bytes) for one specific table:&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;ads=# select pg_relation_size(&#039;size_test&#039;);&lt;br /&gt;pg_relation_size&lt;br /&gt;------------------&lt;br /&gt;          5668864&lt;br /&gt;          (1 row)&lt;br /&gt;&lt;br /&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;Same query, but with the result in a human-readable format:&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;ads=# select pg_size_pretty(pg_relation_size(&#039;size_test&#039;));&lt;br /&gt;pg_size_pretty&lt;br /&gt;----------------&lt;br /&gt; 5536 kB(1 row)&lt;br /&gt;&lt;br /&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;Remember that this is only the size of the table, not included an index or additional stuff.&lt;br /&gt;The size including any index can be found out with:&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;ads=# select pg_size_pretty(pg_total_relation_size(&#039;size_test&#039;));&lt;br /&gt; pg_size_pretty&lt;br /&gt;----------------&lt;br /&gt; 7656 kB&lt;br /&gt;(1 row)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;The size of a complete database:&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;ads=# select pg_size_pretty(pg_database_size(&#039;ads&#039;));&lt;br /&gt; pg_size_pretty&lt;br /&gt;----------------&lt;br /&gt; 11 MB&lt;br /&gt;(1 row)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;You can even find out, how much space a specific value needs:&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;ads=# select pg_column_size(5::smallint);&lt;br /&gt; pg_column_size&lt;br /&gt;----------------&lt;br /&gt;              2&lt;br /&gt;(1 row)&lt;br /&gt;&lt;br /&gt;ads=# select pg_column_size(5::int);&lt;br /&gt; pg_column_size&lt;br /&gt;----------------&lt;br /&gt;              4&lt;br /&gt;(1 row)&lt;br /&gt;&lt;br /&gt;ads=# select pg_column_size(5::bigint);&lt;br /&gt; pg_column_size&lt;br /&gt;----------------&lt;br /&gt;              8&lt;br /&gt;(1 row)&lt;br /&gt;&lt;br /&gt;ads=# select pg_column_size(&#039;This is a string&#039;::varchar);&lt;br /&gt; pg_column_size&lt;br /&gt;----------------&lt;br /&gt;             20&lt;br /&gt;(1 row)&lt;br /&gt;&lt;br /&gt;ads=# select length(&#039;This is a string&#039;::varchar);&lt;br /&gt; length&lt;br /&gt;--------&lt;br /&gt;     16&lt;br /&gt;(1 row)&lt;br /&gt;&lt;br /&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;The 4 byte difference between the column size and the string length is the storage overhead needed for &lt;a href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=5066&amp;amp;entry_id=282&quot;  onmouseover=&quot;window.status=&#039;http://www.postgresql.org/docs/current/static/datatype-character.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot; title=&quot;Documentation for character types in PostgreSQL&quot;&gt;varchar&lt;/a&gt; columns.&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;The size for a tablespace can be found out with pg_tablespace_size(), but i don&#039;t have a machine with configured tablespace at hand to show an example.&lt;/font&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Tue, 04 Dec 2007 11:07:00 +0100</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/282-guid.html</guid>
    <category>Code snippets</category>
<category>PostgreSQL</category>
<category>SQL</category>

</item>
<item>
    <title>stop psql on first error</title>
    <link>http://andreas.scherbaum.la/blog/archives/251-stop-psql-on-first-error.html</link>
            <category>Code Snippets</category>
            <category>PostgreSQL News</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/251-stop-psql-on-first-error.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=251</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=251</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;break&quot;&gt;
&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;p&gt;Because i always forget how to stop psql on the first error:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;\set ON_ERROR_STOP&lt;/p&gt;&lt;p&gt;&lt;br /&gt;You can include this at the top of your script/file, psql will stop right after the first error and will not try to continue any other commands in the chain.&lt;/p&gt;&lt;/font&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sat, 20 Oct 2007 00:27:16 +0200</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/251-guid.html</guid>
    <category>Code snippets</category>
<category>PostgreSQL</category>
<category>psql</category>

</item>
<item>
    <title>Avoid Unique Key violation</title>
    <link>http://andreas.scherbaum.la/blog/archives/11-Avoid-Unique-Key-violation.html</link>
            <category>Code Snippets</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/11-Avoid-Unique-Key-violation.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=11</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=11</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;break&quot;&gt;
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;If you have a table with an unique key field, want to insert new values but you don&#039;t know, if the value may already be in the table, you could use the following query:&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;/p&gt;&lt;pre class=&quot;code&quot;&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;span class=&quot;keyword&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;TABLE&lt;/span&gt; uk_test (id SERIAL, col1 &lt;span class=&quot;keyword&quot;&gt;VARCHAR&lt;/span&gt;(20) &lt;span class=&quot;keyword&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;NULL&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;UNIQUE&lt;/span&gt;, col2 &lt;span class=&quot;keyword&quot;&gt;VARCHAR&lt;/span&gt;(20) &lt;span class=&quot;keyword&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;NULL&lt;/span&gt;);&lt;/font&gt;&lt;/pre&gt;&lt;pre class=&quot;code&quot;&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;span class=&quot;keyword&quot;&gt;INSERT&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;INTO&lt;/span&gt; uk_test (col1, col2) &lt;span class=&quot;keyword&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;literal&quot;&gt;&#039;content 1&#039;&lt;/span&gt;, &lt;span class=&quot;literal&quot;&gt;&#039;content 2&#039;&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;WHERE&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;EXISTS&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt;&lt;pre class=&quot;code&quot;&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;(&lt;span class=&quot;keyword&quot;&gt;SELECT&lt;/span&gt; col1 &lt;span class=&quot;keyword&quot;&gt;FROM&lt;/span&gt; uk_test &lt;span class=&quot;keyword&quot;&gt;WHERE&lt;/span&gt; col1=&lt;span class=&quot;literal&quot;&gt;&#039;content 1&#039;&lt;/span&gt;);&lt;/font&gt;&lt;/pre&gt;&lt;pre class=&quot;code&quot;&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;/font&gt;&lt;/pre&gt;&lt;pre class=&quot;code&quot;&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;This does avoid unique key violation errors in a way, that no insert will happen if the value is already in the table.&lt;/font&gt;&lt;/pre&gt;&lt;pre class=&quot;code&quot;&gt;&lt;/p&gt;&lt;pre class=&quot;code&quot;&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;I would like to thank &lt;a href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=13&amp;amp;entry_id=11&quot;  onmouseover=&quot;window.status=&#039;http://www.depesz.com/index.php/2006/05/13/wstawianie-rekordu-gdy-jeszcze-go-nie-ma/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot; title=&quot;http://www.depesz.com/&quot;&gt;depesz&lt;/a&gt; from #postgresql for the idea.&lt;/font&gt;&lt;/pre&gt;&lt;pre class=&quot;code&quot;&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;/font&gt;&lt;/pre&gt;&lt;p&gt;&lt;/pre&gt; 
    </content:encoded>

    <pubDate>Fri, 28 Jul 2006 11:18:51 +0200</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/11-guid.html</guid>
    <category>Code snippets</category>
<category>PostgreSQL</category>
<category>SQL</category>

</item>
<item>
    <title>Reverse a text in PostgreSQL</title>
    <link>http://andreas.scherbaum.la/blog/archives/10-Reverse-a-text-in-PostgreSQL.html</link>
            <category>Code Snippets</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/10-Reverse-a-text-in-PostgreSQL.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=10</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=10</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;break&quot;&gt;
&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;p&gt;I&#039;m always searching for a reverse function, so here is the link:&lt;/p&gt;&lt;p&gt;&lt;font&gt;&lt;a title=&quot;http://www.varlena.com/GeneralBits/53.php&quot; target=&quot;_blank&quot; href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=11&amp;amp;entry_id=10&quot;  onmouseover=&quot;window.status=&#039;http://www.varlena.com/GeneralBits/53.php&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;http://www.varlena.com/GeneralBits/53.php&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;code snippet is available in plperl and plpgsql.&lt;/p&gt;&lt;/font&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Mon, 24 Jul 2006 23:36:40 +0200</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/10-guid.html</guid>
    <category>Code snippets</category>
<category>Perl</category>
<category>PostgreSQL</category>
<category>SQL</category>
<category>pl/pgSQL</category>

</item>

</channel>
</rss>