转 http://firehuman.blog.163.com/blog/static/57331120106231811447/ ps。如果提示找不到 pg_config 就是指postgresql的bin下面的 pg_config.ext 这个设置到path下或者手动增加就OK了