<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Rails on PostgreSQL : Rails, PostgreSQL, and database drivers</title>
    <link>/2009/09/04/rails-postgresql-and-database-drivers?format=rss</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>&lt;h3&gt;If you like Ruby on Rails, you'll love Rails on PostgreSQL!&lt;/h3&gt;</description>
    <item>
      <title>Comment on Rails, PostgreSQL, and database drivers by alex@alexkane.net</title>
      <description>&lt;p&gt;Great website!
Is the new pg driver much faster?&lt;/p&gt;</description>
      <pubDate>Fri, 04 Sep 2009 21:55:37 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:da6ea2fd-bb4c-428e-a23c-f163b0f39286</guid>
      <link>http://railsonpostgresql.com/2009/09/04/rails-postgresql-and-database-drivers#comment-1</link>
    </item>
    <item>
      <title>Comment on Rails, PostgreSQL, and database drivers by Tom Copeland</title>
      <description>&lt;p&gt;@alex, Thanks!  I haven&amp;#8217;t seen any benchmarks&amp;#8230; but it&amp;#8217;s definitely the way to go.&lt;/p&gt;</description>
      <pubDate>Fri, 04 Sep 2009 22:27:42 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:b1dcaab2-e1bd-41fe-bffa-ed182eb125b8</guid>
      <link>http://railsonpostgresql.com/2009/09/04/rails-postgresql-and-database-drivers#comment-2</link>
    </item>
    <item>
      <title>Comment on Rails, PostgreSQL, and database drivers by Darren Boyd</title>
      <description>&lt;p&gt;On OSX (Leopard), this is the process I used to get the native gem to build&amp;#8230;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo su -
export ARCHFLAGS='-arch i386'
export PATH=/opt/local/lib/postgresql83/bin:$PATH
gem install pg
&amp;lt;control + d to log out of super user&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Note that the postgres bin path is specific to my installation.&lt;/p&gt;</description>
      <pubDate>Fri, 18 Sep 2009 10:15:38 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:aee0ab57-e4b7-4b65-bd7e-4003f40232af</guid>
      <link>http://railsonpostgresql.com/2009/09/04/rails-postgresql-and-database-drivers#comment-8</link>
    </item>
    <item>
      <title>Comment on Rails, PostgreSQL, and database drivers by Wayne E. Seguin</title>
      <description>&lt;p&gt;You do not need to install gems as root. If the reason is &amp;#8220;because then the command shows up&amp;#8221; then add the user&amp;#8217;s gem directory to your path:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;PATH=$PATH:~/.gem/ruby/1.8/bin&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You can even set this exclusively:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;GEM_HOME=~/.gem/ruby/1.8&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;For the purposes of pg gem, in order to cover both bases (both 32 &amp;amp; 64 bit compiled postgres installs) on OSX:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;ARCHFLAGS="-arch i386 -arch x86_64"&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Ensure that your path has psql in it as noted above. Change /opt/local/lib/postgresql83/bin to wherever you have pg_config located. For me this is:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;PATH=$PATH:/usr/local/postgresql/bin ; export PATH&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then install the gem.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;gem install pg&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This non-root technique is especially useful when you have multiple ruby versions installed and are actively switching/using all of them ( I use rvm for this &lt;a href="http://rvm.beginrescueend.com/" rel="nofollow"&gt;http://rvm.beginrescueend.com/&lt;/a&gt; )&lt;/p&gt;

&lt;p&gt;w00t for Postgres!&lt;/p&gt;</description>
      <pubDate>Wed, 30 Sep 2009 10:44:44 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:402f5398-a661-4f85-9874-aaeb6304f893</guid>
      <link>http://railsonpostgresql.com/2009/09/04/rails-postgresql-and-database-drivers#comment-9</link>
    </item>
    <item>
      <title>Comment on Rails, PostgreSQL, and database drivers by Tom Copeland</title>
      <description>&lt;p&gt;@wayne, true&amp;#8230; I guess that most of the time when I install a gem, though, I want it to be available to all user accounts on the box.  But you&amp;#8217;re right, another possibility is to just install it to your home directory.&lt;/p&gt;</description>
      <pubDate>Wed, 30 Sep 2009 11:46:14 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:00f7f7d2-e613-4ce8-b4ed-f62f462c8c21</guid>
      <link>http://railsonpostgresql.com/2009/09/04/rails-postgresql-and-database-drivers#comment-12</link>
    </item>
  </channel>
</rss>

