postgresql build

from source (slackware)

grep ^postgres /etc/group
grep ^postgres /etc/passwd

groupadd -g 209 postgres
useradd -u 209 -g 209 -d /var/lib/postgres postgres

mkdir /var/lib/postgres/
chown postgres:postgres /var/lib/postgres/

mkdir /var/log/postgres/
chown postgres:postgres /var/log/postgres/

grab and build the latest release

wget https://ftp.postgresql.org/pub/source/v13.0/postgresql-13.0.tar.gz
tar xzf postgresql-13.0.tar.gz
cd postgresql-13.0/

./configure --prefix=/usr/local
make
make install

cd contrib/citext/
make
make install
ls -lF /usr/local/lib/postgresql/citext.so

/usr/local/bin/postgres -V

HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun