安装Zig环境
请参考 在 Linux 上安装 Zig 编译环境。
编译 PostgreSQL
下载 PostgreSQL 源码
通过 Github 下载源码,切换到目标标签
git clone https://github.com/postgres/postgres.git
cd postgres
git checkout REL_14_STABLE
sudo yum -y install readline-devel
使用 Zig 编译
执行如下命令:
export CC="zig cc"

最低0.47元/天 解锁文章
1768





