<?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>Debian Tutorials &#187; PostgreSQL</title>
	<atom:link href="http://www.debiantutorials.com/tag/postgresql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.debiantutorials.com</link>
	<description>Copy/Paste tutorials for Debian Linux</description>
	<lastBuildDate>Wed, 08 Sep 2010 08:36:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setup PostgreSQL database system</title>
		<link>http://www.debiantutorials.com/setup-postgresql-database-system/</link>
		<comments>http://www.debiantutorials.com/setup-postgresql-database-system/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 12:34:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Lenny]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[etch]]></category>
		<category><![CDATA[lenny]]></category>

		<guid isPermaLink="false">http://debiantutorials.net/setup-postgresql-database-system/</guid>
		<description><![CDATA[PostgreSQL is a powerful, open source object-relational database system. It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness.
1. Install packages
apt-get install postgresql postgresql-client

2. Create a user
// Change to the postgres linux user and create the actual user
su postgres
createuser [...]]]></description>
			<content:encoded><![CDATA[<p>PostgreSQL is a powerful, open source object-relational database system. It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness.</p>
<p>1. Install packages</p>
<p><code>apt-get install postgresql postgresql-client<br />
</code><span id="more-25"></span></p>
<p>2. Create a user</p>
<p><code>// Change to the postgres linux user and create the actual user<br />
su postgres<br />
createuser user1</code></p>
<p>// Using the default template allow the user and set password<br />
psql template1<br />
alter user aip password 'password'</p>
<p>That's actually all you need to install and create the firt user. Follow the remaining steps to allow remote access to the PostgreSQL server.</p>
<p>3. Enable TCP/IP connections to the server to be able to manage by a remote client. Edit this line in the main PostgreSQL config file (pico /etc/postgresql/7.4/main/postgresql.conf):</p>
<p><code>tcpip_socket = true<br />
</code></p>
<p><em>If managing on Windows I recommend using the <a href="http://sqlmanager.net/en/products/postgresql/manager" target="_blank">EMS SQL Manager</a></em></p>
<p>4. Allow connections from you IP address or a range (pico /etc/postgresql/7.4/main/pg_hba.conf)</p>
<p><code>host    all         all         85.234.0.0         255.255.0.0   trust<br />
</code></p>
<p><em>Using this code I enabled the 85.234.0.0/255.255.0.0 IP range to connect to the server. Make sure you allow as few IP addresses as possible.</em></p>
<p>You're all set. Make sure the port 5432 is open in all firewalls to be able to remote manage the server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/setup-postgresql-database-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
