Apparently all errors in postgres are fatal, it's normal ?
 In this example 'aa' is an invalid column name.

aestivum% cat b.rb
#!/usr/bin/ruby
require "postgres"
require 'passwd'
begin
    conn = PGconn.connect("", -1, "", "", "microsat", $USER, $PASS)
    print "HERE #{conn}\n"
    result = conn.exec("select aa from donnees")
rescue
    print "ERROR\n"
ensure
    conn.close;
end

aestivum% b.rb
HERE #<PGconn:0x401f4f04>
./b.rb:7:in `exec': server fatal error. Please report to your db administrator (PGError)
        from ./b.rb:7
aestivum% 

 it work fine if I replace 'aa' with '*' in conn.exec()


Guy Decoux