安装
git clone https://github.com/postgres/postgres.git
cd postgres
git checkout REL_13_STABLE # 选择版本
# 配置安装路径,如果系统没有readline,需要指定--without-readlne,如果出现下述报错需要指定--build。
# configure: loading cache config.cache
# checking build system type... mkdir: cannot create directory '/cg70205-14341': Permission denied
# mkdir: cannot create directory '/cg-70205': Permission denied
# config.guess: cannot create a temporary directory in
# configure: error: cannot guess build type; you must specify one
configure: error: cannot guess build