<?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>Postgres &#8211; Harry Jackson</title>
	<atom:link href="http://127.0.0.1:8090/tag/postgres/feed" rel="self" type="application/rss+xml" />
	<link>http://127.0.0.1:8090</link>
	<description>Parent, Painter, Programmer</description>
	<lastBuildDate>Wed, 29 Dec 2004 02:00:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Postgresql: Function foo()  does not exist</title>
		<link>http://127.0.0.1:8090/postgresql_function_foo_does_not_exist.htm</link>
					<comments>http://127.0.0.1:8090/postgresql_function_foo_does_not_exist.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Wed, 29 Dec 2004 02:00:49 +0000</pubDate>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[Postgres]]></category>
		<guid isPermaLink="false">http://www.hjackson.org/wp/?p=239</guid>

					<description><![CDATA[Very often we are humbled by the simplest things and tonight I got a good one. I had created a plpgsql function that was called from within a trigger to check for some duplicates in a table, blah blah. The function was working because I had tested it. It was registered in the &#8220;pg_proc&#8221; table &#8230; <p class="link-more"><a href="http://127.0.0.1:8090/postgresql_function_foo_does_not_exist.htm" class="more-link">Continue reading<span class="screen-reader-text"> "Postgresql: Function foo()  does not exist"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>Very often we are humbled by the simplest things and tonight I got a good one.<br />
I had created a plpgsql function that was called from within a trigger to check for some duplicates in a table, blah blah. The function was working because <b>I had</b> tested it. It was registered in the &#8220;pg_proc&#8221; table and the two &#8220;proargtypes&#8221; were type 1043 ie varchar. This function was there, I could see it and if I was a character in Tron I could touch it, so why the hell when one of my scripts ran did I get: function foo does not exist.<br />
I&#8217;ll tell you why, I was not using the correct schema. Ahhhhhhhhhhhh.<br />
I had tested it while logged in as the user who created it and that users schema is different from the user that needs to use it from the website. A quick<br />
grant usage on schema foo to bar;<br />
sorted that problem.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/postgresql_function_foo_does_not_exist.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
