class PG::Connection

def conninfo_hash

## See also #conninfo
##
## keyword (as a Symbol).
## Return the Postgres connection info structure as a Hash keyed by option
def conninfo_hash
	return self.conninfo.each_with_object({}) do |info, hash|
		hash[ info[:keyword].to_sym ] = info[:val]
	end
end