<?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>IT Answers &#187; Postgres</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/postgres/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Thu, 20 Jun 2013 02:09:04 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Using SQL and Postgre on the same machine</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/using-sql-and-postgre-on-the-same-machine/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/using-sql-and-postgre-on-the-same-machine/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 21:21:32 +0000</pubDate>
		<dc:creator>SQL Server Ask the Experts</dc:creator>
				<category><![CDATA[Database API]]></category>
		<category><![CDATA[Postgres]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server 2000]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[We have a requirement in which we need to have our Microsoft SQL Server, as a database of tomcat servers, and our Postgre SQL, as database of jboss servers, on same machine. Are there any known conflicts or issues we should be aware of?]]></description>
				<content:encoded><![CDATA[<p>We have a requirement in which we need to have our Microsoft SQL Server, as a database of tomcat servers, and our Postgre SQL, as database of jboss servers, on same machine. Are there any known conflicts or issues we should be aware of?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/using-sql-and-postgre-on-the-same-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>return array in postgres</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/return-array-in-postgres/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/return-array-in-postgres/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 06:48:02 +0000</pubDate>
		<dc:creator>Johny</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Postgres]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[when i execute following function in postgres, it gives me null. select get_strelements(&#8217;1000-2000-3000-4000&#8242;,array[''::text]); here, &#8220;get_strelements&#8221; function is as follows: CREATE OR REPLACE FUNCTION &#8220;public&#8221;.&#8221;get_strelements&#8221; (str varchar, dummyarr &#8220;pg_catalog&#8221;.&#8221;anyarray&#8221;) RETURNS &#8220;pg_catalog&#8221;.&#8221;anyarray&#8221; AS $body$ declare &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; len integer; len1 integer; len2 integer; v_str varchar; repl_char varchar := &#8216;-&#8217;; i integer; num numeric; noarr varchar[10]; splstr varchar; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; [...]]]></description>
				<content:encoded><![CDATA[<p>when i execute following function in postgres, it gives me null.<br />
select get_strelements(&#8217;1000-2000-3000-4000&#8242;,array[''::text]);</p>
<p>here, &#8220;get_strelements&#8221; function is as follows:</p>
<p>CREATE OR REPLACE FUNCTION &#8220;public&#8221;.&#8221;get_strelements&#8221; (str varchar, dummyarr &#8220;pg_catalog&#8221;.&#8221;anyarray&#8221;) RETURNS &#8220;pg_catalog&#8221;.&#8221;anyarray&#8221; AS<br />
$body$<br />
declare<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
	len integer;<br />
	len1 integer;<br />
	len2 integer;<br />
	v_str varchar;<br />
	repl_char varchar := &#8216;-&#8217;;<br />
	i integer;<br />
	num numeric;<br />
	noarr varchar[10];<br />
	splstr varchar;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
begin<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
	v_str := str;<br />
	len1 := length(v_str);</p>
<p>	select length(replace(v_str,repl_char,&#8221;)) into len2;<br />
	len := (len1 &#8211; len2) + 1;</p>
<p>	for i in 1..len loop<br />
		select split_part(v_str,repl_char,i) into splstr;<br />
		num := splstr::numeric;<br />
		noarr[i] := num;<br />
	end loop;<br />
    raise notice &#8216;noarr = %&#8217;,noarr;<br />
	return noarr;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
exception<br />
	when others then<br />
	   raise notice &#8216;Exception while updating quotation master data&#8230;&#8230;&#8230;&#8230;..&#8217;;<br />
	   return noarr;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
end;<br />
$body$<br />
LANGUAGE &#8216;plpgsql&#8217; VOLATILE CALLED ON NULL INPUT SECURITY INVOKER;</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/return-array-in-postgres/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/14 queries in 0.017 seconds using memcached
Object Caching 388/413 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-20 05:19:12 -->