pg_connect(string [host], string [port], string [options], string [tty], string database);
配置好了应该没问题的