Quantcast
Channel: PostgreSQL research
Viewing all articles
Browse latest Browse all 253

查看Greenplum和PostgreSQL 发行版本的编译参数

$
0
0
通过pg_config可以看到PG的一些库目录,编译器,预编译FLAG,等等:

BINDIR = /home/digoal/pgsql9.5/bin
DOCDIR = /home/digoal/pgsql9.5/share/doc
HTMLDIR = /home/digoal/pgsql9.5/share/doc
INCLUDEDIR = /home/digoal/pgsql9.5/include
PKGINCLUDEDIR = /home/digoal/pgsql9.5/include
INCLUDEDIR-SERVER = /home/digoal/pgsql9.5/include/server
LIBDIR = /home/digoal/pgsql9.5/lib
PKGLIBDIR = /home/digoal/pgsql9.5/lib
LOCALEDIR = /home/digoal/pgsql9.5/share/locale
MANDIR = /home/digoal/pgsql9.5/share/man
SHAREDIR = /home/digoal/pgsql9.5/share
SYSCONFDIR = /home/digoal/pgsql9.5/etc
PGXS = /home/digoal/pgsql9.5/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--prefix=/home/digoal/pgsql9.5'
CC = gcc
CPPFLAGS = -D_GNU_SOURCE
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2
CFLAGS_SL = -fpic
LDFLAGS = -L../../../src/common -Wl,--as-needed -Wl,-rpath,'/home/digoal/pgsql9.5/lib',--enable-new-dtags
LDFLAGS_EX = 
LDFLAGS_SL = 
LIBS = -lpgcommon -lpgport -lz -lreadline -lrt -lcrypt -ldl -lm 
VERSION = PostgreSQL 9.5.0

但是configure的配置项是看不到的。
怎么看呢?
1. 在源码的config.log中可以看到。
less $PGSRC/config.log

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by PostgreSQL configure 9.5.0, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --prefix=/home/digoal/pgsql9.5


2. 如果源码遗失了,可以在软件目录中看到。
  $PGHOME/lib/pgxs/src/Makefile.global

# Saved arguments from configure
configure_args =  '--prefix=/home/digoal/pgsql9.5'


greenplum的发行版本编译项

$GPHOME/lib/postgresql/pgxs/src/Makefile.global
# Saved arguments from configure
configure_args =  '--enable-snmp' '--enable-connectemc' '--enable-ddboost' '--with-gssapi' '--enable-netbackup' '--enable-orca' '--with-libxml' '--with-pgport=5432' '--with-libedit-preferred' '--with-perl' '--with-python' '--with-java' '--with-includes=/data/pulse2-agent/agents/agent1/work/GPDB-4_3_x-rcbuilds/rhel5_x86_64/src/ext/rhel5_x86_64/include /data/pulse2-agent/agents/agent1/work/GPDB-4_3_x-rcbuilds/rhel5_x86_64/src/ext/rhel5_x86_64/include/libxml2' '--with-libraries=/data/pulse2-agent/agents/agent1/work/GPDB-4_3_x-rcbuilds/rhel5_x86_64/src/ext/rhel5_x86_64/lib' '--with-openssl' '--with-pam' '--with-krb5' '--with-ldap' 'CURL_CONFIG=/data/pulse2-agent/agents/agent1/work/GPDB-4_3_x-rcbuilds/rhel5_x86_64/src/ext/rhel5_x86_64/bin/curl-config' '--prefix=/data/pulse2-agent/agents/agent1/work/GPDB-4_3_x-rcbuilds/rhel5_x86_64/4.3.6.1-build-2_output/greenplum-db-4.3.6.1-build-2' '--with-docdir=/data/pulse2-agent/agents/agent1/work/GPDB-4_3_x-rcbuilds/rhel5_x86_64/4.3.6.1-build-2_output/greenplum-db-4.3.6.1-build-2/doc' '--mandir=/data/pulse2-agent/agents/agent1/work/GPDB-4_3_x-rcbuilds/rhel5_x86_64/4.3.6.1-build-2_output/greenplum-db-4.3.6.1-build-2/man' 'CC=gcc -m64' 'CFLAGS=-O3 -funroll-loops -fargument-noalias-global -fno-omit-frame-pointer -g -finline-limit=1800'

通过这个你可以拿到edb或greenplum的发行版本,看看他们的编译参数是什么样的。

Flag Counter

Viewing all articles
Browse latest Browse all 253

Trending Articles