With Postgres-P, you can use Ruby to access the PostgreSQL database without extending with C. However, only the latest 7.x uses Wire-Protocol 3 databases available. Simple example of installation:
> Gem Install Postgres-PR The then can be programmed: Require 'Postgres-PR / Connection' C = Connection.new ('DBNAME', 'DBUSER') C.Query ('SELECT 1 2') # => ["3"]] DBNAME, DBUSER to replace yourself. Project Home: http://rubyforge.org/projects/ruby-dbi