远程连接postgresql时记得在pg_hba.conf最下面增加一条一下内容(X:\Program Files\PostgreSQL\9.2\data)
host all all 0.0.0.0/0 trust
host all all 0.0.0.0/0 trust