# File lib/dbd/pg/database.rb, line 92
 92:     def ping
 93:         answer = _exec("SELECT 1")
 94:         if answer
 95:             return answer.num_tuples == 1
 96:         else
 97:             return false
 98:         end
 99:     rescue PGError
100:         return false
101:     ensure
102:         answer.clear if answer
103:     end