Fixed badmatch on pgsql_open.

Fixed badmatch bug when using reconnect option.