{"repo":"afiskon/pgscripts","free":true,"listed":false,"github":"https://github.com/afiskon/pgscripts","clone":"git clone https://github.com/afiskon/pgscripts.git","description":"A few scripts related to PostgreSQL development","language":"Shell","stars":33,"topics":["postgresql","bash"],"license":"BSD-2-Clause","category":"databases-storage","readme_excerpt":"pgscripts A few scripts related to PostgreSQL development. Originally based on [Stas Kelvich's][stas] code. Used environment variables: $PGINSTALL - where to install PostgreSQL. $PATH - don't forget to add $PGINSTALL/bin here. $TMPDIR - a directory for saving temporary files. In order to install PostgreSQL dependencies run: Typical usage: Building with Meson: List of the scripts: quick-build.sh - runs configure with some common flags, then runs make and make 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 of make check . single-install.sh - installs PostgreSQL to $PGINSTALL and runs it with custom config single-install-meson.sh - same for Meson build system. install.sh - same as single-install.sh but configures streaming replication as well. start.sh / stop.sh - start/stop PostgreSQL using pg ctl . kill.sh - terminates all processes related to PostgreSQL with pkill . code-coverage.sh - genereates a code coverage report (works only with GCC stack!). static-analysis.sh - runs Clang Static Analyzer. valgrind.sh - starts PostgreSQL under Valgrind. valgrind-meson.sh - same for Meson build system. Note: make installcheck or make installcheck-world don't pass if there is a replication configured with master and replica on the same machine. This is a known issue. Thus if you want to run make installcheck ","default_branch":null,"files":null,"tree":[],"storefront":"/r/afiskon","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/afiskon/pgscripts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}