This patch adds pg_dbuser to configuration file so that you can
select as which use you want to connect to wiki database.

diff -urw phpwiki/lib/config.php /data/phpwiki/lib/config.php
--- phpwiki/lib/config.php	Wed Jan 31 08:38:10 2001
+++ /data/phpwiki/lib/config.php	Fri Sep 14 14:58:47 2001
@@ -92,6 +92,7 @@
    } elseif ($WhichDatabase == 'pgsql') {
       $pg_dbhost    = "localhost";
       $pg_dbport    = "5432";
+      $pg_dbuser    = "dpavlin";
       $WikiDataBase  = "wiki"; // name of the database in Postgresql
       $WikiPageStore = "wiki";
       $ArchivePageStore = "archive";
diff -urw phpwiki/lib/pgsql.php /data/phpwiki/lib/pgsql.php
--- phpwiki/lib/pgsql.php	Thu Nov  2 05:23:59 2000
+++ /data/phpwiki/lib/pgsql.php	Fri Sep 14 11:30:01 2001
@@ -28,12 +28,12 @@
    // open a database and return a hash
 
    function OpenDataBase($table) {
-      global $WikiDataBase, $pg_dbhost, $pg_dbport;
+      global $WikiDataBase, $pg_dbhost, $pg_dbport, $pg_dbuser;
 
       $connectstring = $pg_dbhost?"host=$pg_dbhost ":"";
 	 $connectstring .= $pg_dbport?"port=$pg_dbport ":"";
+	 $connectstring .= $pg_dbuser?"user=$pg_dbuser ":"";
 	 $connectstring .= $WikiDataBase?"dbname=$WikiDataBase":"";
-
       if (!($dbc = pg_pconnect($connectstring))) {
          echo "Cannot establish connection to database, giving up.";
          exit();
