A few scripts related to PostgreSQL development. Originally based on Stas Kelvich's code.
- quick-build.sh - runs
configure
with some common flags, then runsmake
andmake check
. Code is compiled with -O0. $PGINSTALL is used as a --prefix. - clang-quick-build.sh - same as quick-build.sh, but Clang is used instead of GCC.
- full-build.sh - same as quick-build.sh, but
make check-world
is executed intead ofmake check
. - single-install.sh - installs PostgreSQL to $PGINSTALL and runs it with custom postgresql.conf.
- install.sh - same as single-install.sh but configures streaming replication as well.
- kill.sh - terminates all processes related to PostgreSQL.
- code-coverage.sh - genereates a code coverage report.
- static-analysis.sh - runs Clang Static Analyzer.
- valgrind.sh - starts PostgreSQL under Valgrind.
Used environment variables:
- $PGINSTALL - where to install PostgreSQL.
- $PATH - don't forget to add $PGINSTALL/bin here.
- $TMPDIR - a directory for saving temporary files.
Typical usage:
./quick-build.sh
# or ./full-build.sh
./install.sh
make installcheck