# -*- ruby -*- require 'pg' require 'stringio' $stderr.puts "Opening database connection ..." conn = PG.connect( dbname: 'test' ) conn.exec( <