<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -40,10 +40,11 @@ when &quot;mysql&quot;
   exec(find_cmd('mysql5', 'mysql'), *args)
 
 when &quot;postgresql&quot;
+  ENV['PGUSER']     = config[&quot;username&quot;] if config[&quot;username&quot;]
   ENV['PGHOST']     = config[&quot;host&quot;] if config[&quot;host&quot;]
   ENV['PGPORT']     = config[&quot;port&quot;].to_s if config[&quot;port&quot;]
   ENV['PGPASSWORD'] = config[&quot;password&quot;].to_s if config[&quot;password&quot;]
-  exec(find_cmd('psql'), '-U', config[&quot;username&quot;], config[&quot;database&quot;])
+  exec(find_cmd('psql'), config[&quot;database&quot;])
 
 when &quot;sqlite&quot;
   exec(find_cmd('sqlite'), config[&quot;database&quot;])</diff>
      <filename>railties/lib/commands/dbconsole.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>150717344aa5c6d8f46fc67de39d6947553ac286</id>
    </parent>
  </parents>
  <author>
    <name>Kyle Hargraves</name>
    <email>philodespotos@gmail.com</email>
  </author>
  <url>http://github.com/rails/rails/commit/77f873acf2f1fb4533dfca6b26b965a115ebbc54</url>
  <id>77f873acf2f1fb4533dfca6b26b965a115ebbc54</id>
  <committed-date>2008-05-16T05:10:14-07:00</committed-date>
  <authored-date>2008-05-16T04:51:39-07:00</authored-date>
  <message>dbconsole should not require a username for postgresql. [#207 state:resolved]

Signed-off-by: Pratik Naik &lt;pratiknaik@gmail.com&gt;</message>
  <tree>2d4c04d3897fcc8bf0e41aabd5495b498bdf66b0</tree>
  <committer>
    <name>Pratik Naik</name>
    <email>pratiknaik@gmail.com</email>
  </committer>
</commit>
