How to compile PostgreSQL source code on Linux
你好,2020! 新的一年的第一篇博客,加油!坚持下去,每天进步一点点。希望这一年我们互相温柔以待。
Postgres 是开源数据库,在工作中我们可能会遇到要自己build源代码的需要,比如客户需要升级到某一特定版本。 本博客旨在指导读者在Linux平台上build postgres源代码。
build steps
-
从postgres 官网下载源代码
postgresql source code download
本篇博客以postgrses11.5为例:下载pgsql11.5_Linux.tar.gz -
解压压缩包pgsql11.5_Linux.tar.gz
tar -zxvf pgsql11.5_Linux.tar.gz
于是在当前目录就会生成postgresql-11.5的文件夹,进入该文件夹我们看到里面有以下文件:
abc@test~/ya/postgresql-11.5 $ls
aclocal.m4 config.log configure contrib doc GNUmakefile.in INSTALL README
config config.status configure.in COPYRIGHT GNUmakefile HISTORY Makefile