Index: content/databases/postgresql/postgresql-config.xml
===================================================================
--- content/databases/postgresql/postgresql-config.xml	(revision 369af35a2ad7d9c7ddbe2eb9b44cf5ae617c8155)
+++ content/databases/postgresql/postgresql-config.xml	(revision 785d4d91f58842acade36628eb69fce92a8d5878)
@@ -30,5 +30,5 @@
         start)
                 echo "Starting PostgreSQL daemon..."
-		su - postgres -c '/usr/bin/pg_ctl start -W -D /var/pgsql/data \
+                su - postgres -c '/usr/bin/pg_ctl start -W -D /var/pgsql/data \
                                -l /var/pgsql/data/logfile -o "-i" '
                 evaluate_retval
@@ -38,5 +38,5 @@
                 echo "Stopping PostgreSQL daemon..."
                 /usr/bin/pg_ctl stop -m smart -D /var/pgsql/data
-		evaluate_retval
+                evaluate_retval
                 ;;
 
Index: content/databases/postgresql/postgresql-desc.xml
===================================================================
--- content/databases/postgresql/postgresql-desc.xml	(revision 369af35a2ad7d9c7ddbe2eb9b44cf5ae617c8155)
+++ content/databases/postgresql/postgresql-desc.xml	(revision 785d4d91f58842acade36628eb69fce92a8d5878)
@@ -23,4 +23,9 @@
 <command>pg_resetxlog</command>,
 <command>pg_restore</command>,
+<command>pgtclsh</command>,
+<command>pgtksh</command>,
+<command>pltcl_delmod</command>,
+<command>pltcl_listmod</command>,
+<command>pltcl_loadmod</command>,
 <command>postgres</command>,
 <command>postmaster</command>,
@@ -28,4 +33,6 @@
 <command>vacuumdb</command>,
 <filename class="libraryfile">libecpg</filename>,
+<filename class="libraryfile">libpgtcl</filename>,
+<filename class="libraryfile">libpgtypes</filename>,
 <filename class="libraryfile">libpq</filename> and various charset
 modules.</para>
@@ -111,4 +118,17 @@
 <command>pg_dump</command>.</para></sect3>
 
+<sect3><title>pgtclsh</title>
+<para><command>pgtclsh</command> is a <application>Tcl</application>
+shell interface extended with
+<application>Postgre<acronym>SQL</acronym></application> database access
+functions.</para></sect3>
+
+<sect3><title>pgtksh</title>
+<para><command>pgtksh</command> is a
+<application>Tcl</application>/<application>Tk</application> shell
+interface extended with
+<application>Postgre<acronym>SQL</acronym></application> database access
+functions.</para></sect3>
+
 <sect3><title>postgres</title>
 <para><command>postgres</command> is a single user database server, generally used for
Index: content/databases/postgresql/postgresql-inst.xml
===================================================================
--- content/databases/postgresql/postgresql-inst.xml	(revision 369af35a2ad7d9c7ddbe2eb9b44cf5ae617c8155)
+++ content/databases/postgresql/postgresql-inst.xml	(revision 785d4d91f58842acade36628eb69fce92a8d5878)
@@ -7,4 +7,12 @@
 make &amp;&amp;
 make install</command></userinput></screen>
+
+<note><para>If you are upgrading an existing system and are going to
+install the new files over the old ones, then you should
+back up your data, shut down the old server and follow the
+instructions in <ulink
+url="http://www.postgresql.org/docs/7.4/static/install-upgrading.html">the
+official <application>Postgre<acronym>SQL</acronym></application>
+documentation</ulink>.</para></note>
 
 <para>Initialize a database cluster with the following commands:</para>
@@ -18,19 +26,17 @@
 
 <screen><userinput><command>su - postgres -c '/usr/bin/postmaster -D /var/pgsql/data > \
-        /var/pgsql/data/logfile 2>&amp;1 &amp;'</command></userinput></screen>
+    /var/pgsql/data/logfile 2&gt;&amp;1 &amp;'</command></userinput></screen>
 
 <para>Now we can create a database and verify the installation:</para>
 
-<screen><userinput><command>su - postgres -c '/usr/bin/createdb test'
+<screen><userinput><command>su - postgres -c '/usr/bin/createdb test' &amp;&amp;
 echo "create table t1 ( name varchar(20), state_province varchar(20) );" \
-                | (su - postgres -c '/usr/bin/psql test ')
-		
+    | (su - postgres -c '/usr/bin/psql test ') &amp;&amp;
 echo "insert into t1 values ('Billy', 'NewYork');" \
-                | (su - postgres -c '/usr/bin/psql test ')
+    | (su - postgres -c '/usr/bin/psql test ') &amp;&amp;
 echo "insert into t1 values ('Evanidus', 'Quebec');" \
-	        | (su - postgres -c '/usr/bin/psql test ')
+    | (su - postgres -c '/usr/bin/psql test ') &amp;&amp;
 echo "insert into t1 values ('Jesse', 'Ontario');" \
-                | (su - postgres -c '/usr/bin/psql test ')
-		
+    | (su - postgres -c '/usr/bin/psql test ') &amp;&amp;
 echo "select * from t1;" | (su - postgres -c '/usr/bin/psql test')</command></userinput></screen>
 
Index: content/databases/postgresql/postgresql-intro.xml
===================================================================
--- content/databases/postgresql/postgresql-intro.xml	(revision 369af35a2ad7d9c7ddbe2eb9b44cf5ae617c8155)
+++ content/databases/postgresql/postgresql-intro.xml	(revision 785d4d91f58842acade36628eb69fce92a8d5878)
@@ -24,6 +24,15 @@
 <sect3><title><application>Postgre<acronym>SQL</acronym></application> dependencies</title>
 <sect4><title>Optional</title>
-<para><xref linkend="readline"/>, <xref linkend="Python"/>, <xref
-linkend="openssl"/> and <xref linkend="Linux_PAM"/>
+<para>
+<xref linkend="readline"/>,
+<xref linkend="Python"/>,
+<xref linkend="tcl"/>,
+<xref linkend="tk"/>,
+<xref linkend="openssl"/>,
+<xref linkend="Linux_PAM"/>,
+<ulink url="http://www.pdc.kth.se/kth-krb/">krb4</ulink> or
+<ulink url="http://web.mit.edu/kerberos/www/">krb5</ulink>,
+<ulink url="http://ant.apache.org/">Ant</ulink> and
+<ulink url="http://rendezvous.sourceforge.net/">Rendezvous</ulink>
 </para></sect4>
 </sect3>
Index: content/databases/postgresql/postgresql.ent
===================================================================
--- content/databases/postgresql/postgresql.ent	(revision 369af35a2ad7d9c7ddbe2eb9b44cf5ae617c8155)
+++ content/databases/postgresql/postgresql.ent	(revision 785d4d91f58842acade36628eb69fce92a8d5878)
@@ -6,7 +6,7 @@
 <!ENTITY postgresql-desc SYSTEM "postgresql-desc.xml">
 <!ENTITY postgresql-version "7.4.1">
-<!ENTITY postgresql-download-http "">
-<!ENTITY postgresql-download-ftp "ftp://ftp.fr.postgresql.org/v&postgresql-version;/postgresql-&postgresql-version;.tar.gz">
-<!ENTITY postgresql-size "11 MB">
+<!ENTITY postgresql-download-http "http://gd.tuwien.ac.at/db/postgresql/v&postgresql-version;/postgresql-&postgresql-version;.tar.bz2">
+<!ENTITY postgresql-download-ftp "ftp://ftp.fr.postgresql.org/v&postgresql-version;/postgresql-&postgresql-version;.tar.bz2">
+<!ENTITY postgresql-size "9.6 MB">
 <!ENTITY postgresql-buildsize "86 MB">
 <!ENTITY postgresql-time "1.74 SBU">
