ololobus / pg-scripts

PostgreSQL development scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PostgreSQL development scripts

Dependencies

Linux (Debian)

Install dependencies:

sudo apt install bison flex build-essential gcc make zlib1g-dev libreadline7 libreadline-dev

You may need some extra deps:

sudo apt install libicu-dev libgss-dev libkrb5-dev libxml2-dev libxslt1-dev xsltproc \
                     lcov tcl-dev libzstd-dev libssl-dev libldap2-dev gettext \
                     python-dev libpython-dev \
                     perl libperl-dev libdbi-perl cpanminus

Packages for documentation:

sudo apt install libxml2-utils docbook docbook-xml docbook-xsl fop dbtoepub

macOS

Minimal dev dependencies:

brew install bison flex make perl
cpan IPC::Run

PG build

Get Postgres sources

git clone https://github.com/postgres/postgres.git

Go to your working directory

cd postgres

Set up ENV

. pg-env set

Do some stuff

pg-configure
make -j -s && make -j -s install
pg-initdb
pg-server start

Clean up and rebuild everything

pg-rebuild

Out-of-source build

Get Postgres sources

git clone https://github.com/postgres/postgres.git

Go to your working directory

mkdir postgres_build && cd postgres_build

Set up ENV

. pg-env set

Do some stuff

pg-configure /path/to/postgres/sources
make -j4 -s install
initdb
pg-server start
createdb
psql

About

PostgreSQL development scripts


Languages

Language:Shell 100.0%