<?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>Learning is an Art &#187; postgresql</title>
	<atom:link href="http://www.singhvishwajeet.com/tag/postgresql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.singhvishwajeet.com</link>
	<description>My experiences</description>
	<lastBuildDate>Thu, 10 Jun 2010 22:19:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Installing PostgreSQL on Centos/RHEL</title>
		<link>http://www.singhvishwajeet.com/2010/05/07/installing-postgresql-on-centosrhel/</link>
		<comments>http://www.singhvishwajeet.com/2010/05/07/installing-postgresql-on-centosrhel/#comments</comments>
		<pubDate>Thu, 06 May 2010 20:13:13 +0000</pubDate>
		<dc:creator>Vishwajeet Singh</dc:creator>
				<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[database server]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[RHEL]]></category>

		<guid isPermaLink="false">http://www.singhvishwajeet.com/?p=380</guid>
		<description><![CDATA[ [...]]]></description>
			<content:encoded><![CDATA[<p>To install latest version of postgresql we first we need to add pgdg repository to list of repositories open terminal and fire following commands, you need to be root.</p>
<div class="codesnip-container" >
<p>wget http://yum.pgsqlrpms.org/reporpms/8.4/pgdg-redhat-8.4-1.noarch.rpm<br />rpm -Uhv pgdg-redhat-8.4-1.noarch.rpm</div>
</p>
<p>Once repository is installed properly use yum to install postgresql as shown below</p>
<div class="codesnip-container" >
<p>yum install postgresql<br />yum install postgresql-server</div>
</p>
<p>You can do above in a single line choice is yours.</p>
<p>Initialize the database</p>
<div class="codesnip-container" >
<p>initdb -D /usr/local/pgsql/data</p>
</div>
<p>Start the database server</p>
<div class="codesnip-container" >
<p>pg_ctl start -D /usr/local/pgsql/data</p>
</div>
<p>Voila your database server is setup and ready to use.</p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.singhvishwajeet.com/2010/05/07/installing-postgresql-on-centosrhel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PostgresSQL passing password from command line solution</title>
		<link>http://www.singhvishwajeet.com/2009/12/13/postgressql-passing-password-from-commandline-solution/</link>
		<comments>http://www.singhvishwajeet.com/2009/12/13/postgressql-passing-password-from-commandline-solution/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 17:42:09 +0000</pubDate>
		<dc:creator>Vishwajeet Singh</dc:creator>
				<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[pgpass.conf]]></category>
		<category><![CDATA[PGPASSWORD]]></category>
		<category><![CDATA[postgresql]]></category>

		<guid isPermaLink="false">http://www.singhvishwajeet.com/?p=262</guid>
		<description><![CDATA[ [...]]]></description>
			<content:encoded><![CDATA[<p>Few days back I was trying to create database in a batch job using createdb.exe and I encountered this problem createdb.exe prompts for password and there is no way of passing password from command line as an argument.<br />
I tried to find out how to do this but in vein there is no way you can pass password as an command line argument; than after looking around for sometime and googling I found two ways of doing it</p>
<ul>
<li><strong>Setting up PGPASSWORD environment variable</strong> : This method is not preferable as it&#8217;s insecure more for further details read <a title="Postgres Environment variables" href="http://www.postgresql.org/docs/8.3/static/libpq-envars.html" target="_blank">this</a></li>
</ul>
<p><br/></p>
<ul>
<li><strong>Setting up password in pgpass.conf</strong> : The file is to be located
<div class="codesnip-container" >%APPDATA%\postgresql\pgpass.conf</div>
</li>
</ul>
<p>File has the following format</p>
<div class="codesnip-container" >hostname:port:database:username:password</div>
<p>Each of the first four fields may be a literal value, or *, which matches anything.</p>
<p>For further details the postgres <a title="Postgres password file" href="http://www.pgadmin.org/docs/1.4/pg/libpq-pgpass.html" target="_blank">documentation</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.singhvishwajeet.com/2009/12/13/postgressql-passing-password-from-commandline-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
