<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Howto setup Database Server With postgresql and pgadmin3</title>
	<atom:link href="http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html</link>
	<description>Ubuntu Linux Tutorials,Howtos,Tips &#38; News &#124; Oneiric,Natty,Maverick</description>
	<lastBuildDate>Mon, 06 Feb 2012 15:40:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: iceman</title>
		<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/comment-page-1#comment-91413</link>
		<dc:creator>iceman</dc:creator>
		<pubDate>Thu, 10 Feb 2011 06:31:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html#comment-91413</guid>
		<description>pg_hba.conf settings for Maverick Meerkat

#DO NOT DISABLE
# If you change this first entry you will need to make sure that the
# database
# super user can access the database using some other method.
# Noninteractive
# access to all databases is required during automatic maintenance
# (autovacuum, daily cronjob, replication, and similar tasks).
#
# Database administrative login by UNIX sockets
local all postgres ident
# TYPE DATABASE USER CIDR-ADDRESS METHOD

# “local” is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5

# Connections for all PCs on the subnet
#
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
host all all [ipaddress] [subnet mask] md5</description>
		<content:encoded><![CDATA[<p>pg_hba.conf settings for Maverick Meerkat</p>
<p>#DO NOT DISABLE<br />
# If you change this first entry you will need to make sure that the<br />
# database<br />
# super user can access the database using some other method.<br />
# Noninteractive<br />
# access to all databases is required during automatic maintenance<br />
# (autovacuum, daily cronjob, replication, and similar tasks).<br />
#<br />
# Database administrative login by UNIX sockets<br />
local all postgres ident<br />
# TYPE DATABASE USER CIDR-ADDRESS METHOD</p>
<p># “local” is for Unix domain socket connections only<br />
local all all md5<br />
# IPv4 local connections:<br />
host all all 127.0.0.1/32 md5<br />
# IPv6 local connections:<br />
host all all ::1/128 md5</p>
<p># Connections for all PCs on the subnet<br />
#<br />
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD<br />
host all all [ipaddress] [subnet mask] md5</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RezvieFN</title>
		<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/comment-page-1#comment-42662</link>
		<dc:creator>RezvieFN</dc:creator>
		<pubDate>Sat, 07 Aug 2010 06:17:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html#comment-42662</guid>
		<description>Postgres is a good choice. 

Follow this step to install latest Postgres:
- go to &quot;Synaptic Package Manager&quot; then search &quot;postgresql&quot; only, then click Apply
- while you are on &quot;Synaptic Package Manager&quot; search &quot;pgadmin3&quot; only, then click Apply

then follow the other steps:
-----------------------------------
Configuring postgresql in Ubuntu

Now we need to reset the password for the ‘postgres’ admin account for the server

sudo su postgres -c psql template1
template1=# ALTER USER postgres WITH PASSWORD ‘password’;
template1=# \q

That alters the password for within the database, now we need to do the same for the unix user ‘postgres’:

sudo passwd -d postgres

sudo su postgres -c passwd

Now enter the same password that you used previously.

from here on in we can use both pgAdmin and command-line access (as the postgres user) to run the database server. But before you jump into pgAdmin we should set-up the PostgreSQL admin pack that enables better logging and monitoring within pgAdmin. Run the following at the command-line

we need to open up the server so that we can access and use it remotely - unless you only want to access the database on the local machine. To do this, first, we need to edit the postgresql.conf file:

sudo gedit /etc/postgresql/8.2/main/postgresql.conf

Now, to edit a couple of lines in the ‘Connections and Authentication’ section

Change the line

#listen_addresses = ‘localhost’

to

listen_addresses = ‘*’

and also change the line

#password_encryption = on

to

password_encryption = on

Then save the file and close gedit.

Now for the final step, we must define who can access the server. This is all done using the pg_hba.conf file.

sudo gedit /etc/postgresql/8.2/main/pg_hba.conf

Comment out, or delete the current contents of the file, then add this text to the bottom of the file

DO NOT DISABLE!
# If you change this first entry you will need to make sure that the
# database
# super user can access the database using some other method.
# Noninteractive
# access to all databases is required during automatic maintenance
# (autovacuum, daily cronjob, replication, and similar tasks).
#
# Database administrative login by UNIX sockets
local all postgres ident sameuser
# TYPE DATABASE USER CIDR-ADDRESS METHOD

# “local” is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5

# Connections for all PCs on the subnet
#
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
host all all [ip address] [subnet mask] md5

and in the last line, add in your subnet mask (i.e. 255.255.255.0) and the IP address of the machine that you would like to access your server (i.e. 138.250.192.115). However, if you would like to enable access to a range of IP addresses, just substitute the last number for a zero and all machines within that range will be allowed access (i.e. 138.250.192.0 would allow all machines with an IP address 138.250.192.x to use the database server).

That’s it, now all you have to do is restart the server

sudo /etc/init.d/postgresql-8.2 restart

That’s it you can start using postgresql in Ubuntu</description>
		<content:encoded><![CDATA[<p>Postgres is a good choice. </p>
<p>Follow this step to install latest Postgres:<br />
- go to &#8220;Synaptic Package Manager&#8221; then search &#8220;postgresql&#8221; only, then click Apply<br />
- while you are on &#8220;Synaptic Package Manager&#8221; search &#8220;pgadmin3&#8243; only, then click Apply</p>
<p>then follow the other steps:<br />
-----------------------------------<br />
Configuring postgresql in Ubuntu</p>
<p>Now we need to reset the password for the ‘postgres’ admin account for the server</p>
<p>sudo su postgres -c psql template1<br />
template1=# ALTER USER postgres WITH PASSWORD ‘password’;<br />
template1=# \q</p>
<p>That alters the password for within the database, now we need to do the same for the unix user ‘postgres’:</p>
<p>sudo passwd -d postgres</p>
<p>sudo su postgres -c passwd</p>
<p>Now enter the same password that you used previously.</p>
<p>from here on in we can use both pgAdmin and command-line access (as the postgres user) to run the database server. But before you jump into pgAdmin we should set-up the PostgreSQL admin pack that enables better logging and monitoring within pgAdmin. Run the following at the command-line</p>
<p>we need to open up the server so that we can access and use it remotely - unless you only want to access the database on the local machine. To do this, first, we need to edit the postgresql.conf file:</p>
<p>sudo gedit /etc/postgresql/8.2/main/postgresql.conf</p>
<p>Now, to edit a couple of lines in the ‘Connections and Authentication’ section</p>
<p>Change the line</p>
<p>#listen_addresses = ‘localhost’</p>
<p>to</p>
<p>listen_addresses = ‘*’</p>
<p>and also change the line</p>
<p>#password_encryption = on</p>
<p>to</p>
<p>password_encryption = on</p>
<p>Then save the file and close gedit.</p>
<p>Now for the final step, we must define who can access the server. This is all done using the pg_hba.conf file.</p>
<p>sudo gedit /etc/postgresql/8.2/main/pg_hba.conf</p>
<p>Comment out, or delete the current contents of the file, then add this text to the bottom of the file</p>
<p>DO NOT DISABLE!<br />
# If you change this first entry you will need to make sure that the<br />
# database<br />
# super user can access the database using some other method.<br />
# Noninteractive<br />
# access to all databases is required during automatic maintenance<br />
# (autovacuum, daily cronjob, replication, and similar tasks).<br />
#<br />
# Database administrative login by UNIX sockets<br />
local all postgres ident sameuser<br />
# TYPE DATABASE USER CIDR-ADDRESS METHOD</p>
<p># “local” is for Unix domain socket connections only<br />
local all all md5<br />
# IPv4 local connections:<br />
host all all 127.0.0.1/32 md5<br />
# IPv6 local connections:<br />
host all all ::1/128 md5</p>
<p># Connections for all PCs on the subnet<br />
#<br />
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD<br />
host all all [ip address] [subnet mask] md5</p>
<p>and in the last line, add in your subnet mask (i.e. 255.255.255.0) and the IP address of the machine that you would like to access your server (i.e. 138.250.192.115). However, if you would like to enable access to a range of IP addresses, just substitute the last number for a zero and all machines within that range will be allowed access (i.e. 138.250.192.0 would allow all machines with an IP address 138.250.192.x to use the database server).</p>
<p>That’s it, now all you have to do is restart the server</p>
<p>sudo /etc/init.d/postgresql-8.2 restart</p>
<p>That’s it you can start using postgresql in Ubuntu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gontrand</title>
		<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/comment-page-1#comment-27971</link>
		<dc:creator>Gontrand</dc:creator>
		<pubDate>Tue, 20 Apr 2010 13:33:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html#comment-27971</guid>
		<description>Not sure, but maybe this command :

$ sudo su postgres -c psql &lt; /usr/share/postgresql/8.2/contrib/adminpack.sql

At the end of this post :

http://moojix.wordpress.com/2008/06/24/install-postgresql-82-under-ubuntu-with-adminpack/</description>
		<content:encoded><![CDATA[<p>Not sure, but maybe this command :</p>
<p>$ sudo su postgres -c psql &lt; /usr/share/postgresql/8.2/contrib/adminpack.sql</p>
<p>At the end of this post :</p>
<p><a href="http://moojix.wordpress.com/2008/06/24/install-postgresql-82-under-ubuntu-with-adminpack/" rel="nofollow">http://moojix.wordpress.com/2008/06/24/install-postgresql-82-under-ubuntu-with-adminpack/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gontrand</title>
		<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/comment-page-1#comment-27970</link>
		<dc:creator>Gontrand</dc:creator>
		<pubDate>Tue, 20 Apr 2010 13:29:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html#comment-27970</guid>
		<description>Some commands missing for admin pack installation I think as Alan Ha;e already mention...</description>
		<content:encoded><![CDATA[<p>Some commands missing for admin pack installation I think as Alan Ha;e already mention&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/comment-page-1#comment-26357</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Thu, 25 Mar 2010 13:24:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html#comment-26357</guid>
		<description>Thanks for the tutorial. I used it to get connected...</description>
		<content:encoded><![CDATA[<p>Thanks for the tutorial. I used it to get connected&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BtcheBtch</title>
		<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/comment-page-1#comment-18730</link>
		<dc:creator>BtcheBtch</dc:creator>
		<pubDate>Fri, 11 Dec 2009 18:21:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html#comment-18730</guid>
		<description>I got all the info needed,
Thank you so much !</description>
		<content:encoded><![CDATA[<p>I got all the info needed,<br />
Thank you so much !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Ha;e</title>
		<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/comment-page-1#comment-16877</link>
		<dc:creator>Alan Ha;e</dc:creator>
		<pubDate>Wed, 18 Nov 2009 17:53:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html#comment-16877</guid>
		<description>Isn&#039;t there some text missing at the end of the section on&quot; set-up the PostgreSQL admin pack&quot; ? WHAT do you run at the command line to set this up?

Many thanks for the tutorial.</description>
		<content:encoded><![CDATA[<p>Isn&#8217;t there some text missing at the end of the section on&#8221; set-up the PostgreSQL admin pack&#8221; ? WHAT do you run at the command line to set this up?</p>
<p>Many thanks for the tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pat</title>
		<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/comment-page-1#comment-11371</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Thu, 23 Jul 2009 07:39:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html#comment-11371</guid>
		<description>I Tried to execute the command but im getting this WARNING...did i do something wrong?

petrus@petrus-laptop:~$ sudo gedit /etc/postgresql/8.2/main/postgresql.conf

(gedit:8166): Gtk-WARNING **: cannot open display:</description>
		<content:encoded><![CDATA[<p>I Tried to execute the command but im getting this WARNING&#8230;did i do something wrong?</p>
<p>petrus@petrus-laptop:~$ sudo gedit /etc/postgresql/8.2/main/postgresql.conf</p>
<p>(gedit:8166): Gtk-WARNING **: cannot open display:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cesar Scheck</title>
		<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/comment-page-1#comment-10724</link>
		<dc:creator>Cesar Scheck</dc:creator>
		<pubDate>Sun, 05 Jul 2009 02:19:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html#comment-10724</guid>
		<description>Thank you, buddy!!!
I was looking for a code to change the admin&#039;s password and I found your article.

After coding, I had to stop and start the service to make this thing works, 
Thanks once!
Best regards!</description>
		<content:encoded><![CDATA[<p>Thank you, buddy!!!<br />
I was looking for a code to change the admin&#8217;s password and I found your article.</p>
<p>After coding, I had to stop and start the service to make this thing works,<br />
Thanks once!<br />
Best regards!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piotrek</title>
		<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/comment-page-1#comment-3048</link>
		<dc:creator>Piotrek</dc:creator>
		<pubDate>Tue, 09 Dec 2008 21:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html#comment-3048</guid>
		<description>Very handy jump start
Thanx !</description>
		<content:encoded><![CDATA[<p>Very handy jump start<br />
Thanx !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Witi</title>
		<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/comment-page-1#comment-3047</link>
		<dc:creator>Witi</dc:creator>
		<pubDate>Wed, 26 Nov 2008 08:15:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html#comment-3047</guid>
		<description>Thank you for the nice tutorial! I think i will give Postgres a try!</description>
		<content:encoded><![CDATA[<p>Thank you for the nice tutorial! I think i will give Postgres a try!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OldManRiver</title>
		<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/comment-page-1#comment-3046</link>
		<dc:creator>OldManRiver</dc:creator>
		<pubDate>Thu, 20 Nov 2008 17:36:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html#comment-3046</guid>
		<description>All,

Take that back, was not in root dir.

OMR</description>
		<content:encoded><![CDATA[<p>All,</p>
<p>Take that back, was not in root dir.</p>
<p>OMR</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OldManRiver</title>
		<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/comment-page-1#comment-3045</link>
		<dc:creator>OldManRiver</dc:creator>
		<pubDate>Thu, 20 Nov 2008 17:32:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html#comment-3045</guid>
		<description>All,

I see why I get no restart when I run the following this is all I get:
&lt;code&gt;
# find /* -name postg*
/etc/postgresql/8.2/main/postgresql.conf
&lt;/code&gt;
so system contains no control script in the &quot;/etc/init.d&quot; dir.

OMR</description>
		<content:encoded><![CDATA[<p>All,</p>
<p>I see why I get no restart when I run the following this is all I get:<br />
<code><br />
# find /* -name postg*<br />
/etc/postgresql/8.2/main/postgresql.conf<br />
</code><br />
so system contains no control script in the &#8220;/etc/init.d&#8221; dir.</p>
<p>OMR</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OldManRiver</title>
		<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/comment-page-1#comment-3044</link>
		<dc:creator>OldManRiver</dc:creator>
		<pubDate>Thu, 20 Nov 2008 17:15:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html#comment-3044</guid>
		<description>All,

Followed this HOWTO and got the the restart part and get:

root@u-main-svr:/etc/postgresql/8.2/main# sudo /etc/init.d/postgresql-8.2 restart
 * Restarting PostgreSQL 8.2 database server                                     * Error: pid file is invalid, please manually kill the stale server process.
                                                                         [fail]

Tried a stop and start instead but no luck

What do I need to do to get around this problem?

OMR</description>
		<content:encoded><![CDATA[<p>All,</p>
<p>Followed this HOWTO and got the the restart part and get:</p>
<p>root@u-main-svr:/etc/postgresql/8.2/main# sudo /etc/init.d/postgresql-8.2 restart<br />
 * Restarting PostgreSQL 8.2 database server                                     * Error: pid file is invalid, please manually kill the stale server process.<br />
                                                                         [fail]</p>
<p>Tried a stop and start instead but no luck</p>
<p>What do I need to do to get around this problem?</p>
<p>OMR</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: se7s</title>
		<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/comment-page-1#comment-3043</link>
		<dc:creator>se7s</dc:creator>
		<pubDate>Mon, 13 Oct 2008 14:12:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html#comment-3043</guid>
		<description>Thank you so much .. u just saved my day with this great tutorial</description>
		<content:encoded><![CDATA[<p>Thank you so much .. u just saved my day with this great tutorial</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chappejw</title>
		<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/comment-page-1#comment-3042</link>
		<dc:creator>chappejw</dc:creator>
		<pubDate>Thu, 24 Jul 2008 02:20:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html#comment-3042</guid>
		<description>Thanks for the great quick tutorial. Don&#039;t forget to read user&#039;s comments and update/fix your typos... ;)</description>
		<content:encoded><![CDATA[<p>Thanks for the great quick tutorial. Don&#8217;t forget to read user&#8217;s comments and update/fix your typos&#8230; <img src='http://www.ubuntugeek.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: spicedreams</title>
		<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/comment-page-1#comment-3041</link>
		<dc:creator>spicedreams</dc:creator>
		<pubDate>Wed, 18 Jun 2008 10:45:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html#comment-3041</guid>
		<description>in fact watch out for the &#039;typographical quotes&#039; issue throughout. This Wordpress web server software takes all your nice simple &lt;code&gt;&quot;&lt;/code&gt; and &lt;code&gt;&#039;&lt;/code&gt; quotes as required for these commands, and replaces them with dumb &quot;typographical&quot; &#039;quotes&#039; which don&#039;t work. It&#039;s probably a setting in the wordpress configuration- it needs to be turned off please!</description>
		<content:encoded><![CDATA[<p>in fact watch out for the &#8216;typographical quotes&#8217; issue throughout. This WordPress web server software takes all your nice simple <code>"</code> and <code>'</code> quotes as required for these commands, and replaces them with dumb &#8220;typographical&#8221; &#8216;quotes&#8217; which don&#8217;t work. It&#8217;s probably a setting in the wordpress configuration- it needs to be turned off please!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: spicedreams</title>
		<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/comment-page-1#comment-3040</link>
		<dc:creator>spicedreams</dc:creator>
		<pubDate>Wed, 18 Jun 2008 10:41:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html#comment-3040</guid>
		<description>&lt;i&gt;postgres=# template1=# ALTER USER postgres WITH PASSWORD ‘jack’;

ERROR: syntax error at or near “template1?&lt;/i&gt;

This is because &lt;i&gt;template1=#&lt;/i&gt; is the prompt you&#039;re supposed to see, not part of the command. In fact you&#039;re seeing the prompt &lt;i&gt;postgres=#&lt;/i&gt;, indicating that you&#039;re logged in to the database &#039;postgres&#039; rather than &#039;template1&#039; that you should be. That in turn is because the earlier command listed above: &lt;i&gt;sudo su postgres -c psql template1&lt;/i&gt; is wrong- it should read &lt;i&gt;sudo su postgres -c &quot;psql -d template1&quot;&lt;/i&gt;, which will connect you to database &#039;template1&#039; as needed.

The typographical `quotes&#039; around the password in the instructions are wrong too- you need to replace them with simple &#039;quotes&#039; or you will get other errors.

That said, I have been using this to help me set up my own postgresql server and it has helped me. Is it strictly true that the unix password for the user &#039;postgresql&#039; needs to match the database server&#039;s password for the user of the same name? I think I have got away in the past without making them match.</description>
		<content:encoded><![CDATA[<p><i>postgres=# template1=# ALTER USER postgres WITH PASSWORD ‘jack’;</p>
<p>ERROR: syntax error at or near “template1?</i></p>
<p>This is because <i>template1=#</i> is the prompt you&#8217;re supposed to see, not part of the command. In fact you&#8217;re seeing the prompt <i>postgres=#</i>, indicating that you&#8217;re logged in to the database &#8216;postgres&#8217; rather than &#8216;template1&#8242; that you should be. That in turn is because the earlier command listed above: <i>sudo su postgres -c psql template1</i> is wrong- it should read <i>sudo su postgres -c &#8220;psql -d template1&#8243;</i>, which will connect you to database &#8216;template1&#8242; as needed.</p>
<p>The typographical `quotes&#8217; around the password in the instructions are wrong too- you need to replace them with simple &#8216;quotes&#8217; or you will get other errors.</p>
<p>That said, I have been using this to help me set up my own postgresql server and it has helped me. Is it strictly true that the unix password for the user &#8216;postgresql&#8217; needs to match the database server&#8217;s password for the user of the same name? I think I have got away in the past without making them match.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jmvbxx</title>
		<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/comment-page-1#comment-3039</link>
		<dc:creator>jmvbxx</dc:creator>
		<pubDate>Wed, 30 Apr 2008 03:39:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html#comment-3039</guid>
		<description>Where is the default database installed?  thx</description>
		<content:encoded><![CDATA[<p>Where is the default database installed?  thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jj</title>
		<link>http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html/comment-page-1#comment-3038</link>
		<dc:creator>jj</dc:creator>
		<pubDate>Tue, 22 Apr 2008 23:25:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html#comment-3038</guid>
		<description>There should be a hash (#)before &quot;DO NOT DISABLE!&quot;</description>
		<content:encoded><![CDATA[<p>There should be a hash (#)before &#8220;DO NOT DISABLE!&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

