title: Postgres segmentation fault ruby gem
body: <p>I am trying to run this project <a href="https://github.com/eLobato/cartodb-rb-client" rel="nofollow">https://github.com/eLobato/cartodb-rb-client</a> but apparently either my rvm is messed up or pg has a terrible bug.
  This is the error trace</p>
  
  <pre><code>/usr/bin/ruby1.8 -S bundle exec rspec "./spec/model/data_spec.rb" "./spec/model/metadata_spec.rb" "./spec/model/scopes_spec.rb" "./spec/client_spec.rb"
  /home/daniel/.rvm/gems/ruby-1.9.2-p290@cartodb-rb-client/gems/pg-0.11.0/lib/pg_ext.so: [BUG] Segmentation fault
  ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
  
  Aborted
  rake aborted!
  ruby -S bundle exec rspec "./spec/model/data_spec.rb" "./spec/model/metadata_spec.rb" "./spec/model/scopes_spec.rb" "./spec/client_spec.rb" failed
  
  Tasks: TOP =&gt; spec
  (See full trace by running task with --trace)
  </code></pre>
  
  <p>The Segmentation fault line really bugs me a lot because I tried to reinstall pg with no avail. I am running Ubuntu 11.10 and I have installed both ruby 1.9.2 and 1.8.7</p>
  
  <p>Any clue?</p>