File tree Expand file tree Collapse file tree 3 files changed +50
-0
lines changed Expand file tree Collapse file tree 3 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ export CFLAGS=" -O0"
2+
3+ ./configure --prefix=` pwd` /tmp_install --enable-tap-tests --enable-debug \
4+ --enable-cassert --enable-nls --with-openssl --with-perl --with-tcl --with-python \
5+ --with-tclconfig=/usr/lib/x86_64-linux-gnu/tcl8.6
6+
7+ # make
8+
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # ------------------------------------------------------------------------------
4+ #
5+ # Initialization & create DB & start of a postgresql instance at first launch.
6+ #
7+ # ------------------------------------------------------------------------------
8+
9+ PGINSTALL=` pwd` /tmp_install/
10+ PGDATA=GCP_PGDATA
11+
12+ export PATH=$PGINSTALL /bin:$PATH
13+ export PGDATABASE=test
14+
15+ pkill -9 -e postgres || true
16+ sleep 1
17+
18+ rm -rf $GDATA
19+ mkdir $GDATA
20+ rm -rf logfile.log || true
21+
22+ # Building project
23+ ./cmp.sh
24+ make > /dev/null
25+ make -C contrib > /dev/null
26+ make install > /dev/null
27+ make -C contrib install > /dev/null
28+
29+ initdb -D GCP_PGDATA -E UTF8 --locale=C
30+
31+ echo " shared_preload_libraries = 'postgres_fdw, pg_exchange'" >> $PGDATA /postgresql.conf
32+ echo " listen_addresses = '*'" >> $PGDATA /postgresql.conf
33+ echo " host all all 0.0.0.0/0 trust" >> $PGDATA /pg_hba.conf
34+
35+ pg_ctl -w -c -D $PGDATA -l logfile-$1 .log start
36+ createdb
37+
Original file line number Diff line number Diff line change 1+ INSTDIR=` pwd` /tmp_install
2+
3+ export LD_LIBRARY_PATH=$INSTDIR /lib:$LD_LIBRARY_PATH
4+ export PATH=$INSTDIR /bin:$PATH
5+
You can’t perform that action at this time.
0 commit comments