>>>>> "G" == Gavin Kistner <gavin / refinery.com> writes:

G> PGresult#print( file, opt )
G> What's this do?

http://www.postgresql.org/docs/7.4/static/libpq-exec.html#LIBPQ-EXEC-SELECT-INFO

 PQprint

 Prints out all the rows and, optionally, the column names to the specified
 output stream.  

 There is an example in sample/psql.rb

Guy Decoux