PostgreSQL Page Layout https://github.com/postgres/postgres/blob/master/src/include/storage/bufpage.h配置编译环境./configure \ --prefix/opt/pg18d \ --enable-debug \ --enable-cassert \ CFLAGS-O0 -g3编译源码make -j$(nproc)安装 PostgreSQLmake install初始化数据库# 创建数据目录 mkdir -p /opt/pg18d_data chown postgres:postgres /opt/pg18d_data # 初始化数据库 /opt/pg18d/bin/initdb -D /opt/pg18d_data启动 PostgreSQL服务以单用户模式启动便于调试/opt/pg18d/bin/postgres --single -D /opt/pg18d_data或者以服务器模式启动/opt/pg18d/bin/pg_ctl -D /opt/pg18d_data -l logfile start