Skip to content

Commit 758b290

Browse files
committed
Add GCP scripts directory
1 parent e00fd69 commit 758b290

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

contrib/pg_exchange/gcp/cmp.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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+

contrib/pg_exchange/gcp/init.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+

contrib/pg_exchange/gcp/paths.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
INSTDIR=`pwd`/tmp_install
2+
3+
export LD_LIBRARY_PATH=$INSTDIR/lib:$LD_LIBRARY_PATH
4+
export PATH=$INSTDIR/bin:$PATH
5+

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy