The Many Names of ruby-pg
The name of the current library/gem is
pg. It used to be
postgres, but was
rewritten from scratch in 2007 to more-closely follow the C API. To ensure that
people who were using the
postgres API didn’t accidentally install the wrong
gem, the maintainer at the time decided to rename it to
The name of the project (group, repo, etc.) is ‘ruby-pg’ because ‘pg’ isn’t terribly useful when searching. I would do the same thing if the gem was named ‘postgres’, as the the Ruby PostgreSQL driver isn’t ‘postgres’, PostgreSQL is.
ruby-pg gem and the
postgres gem are now very old code, and
haven’t been tested (by me anyway) under either Ruby 1.9 or PostgreSQL 9. My
plan is to release new versions of both of them that direct people to the
gem after I get this namespace rearrangement done.