Tuesday, November 5, 2019

Build Citus from source

apt-get install -y libreadline-dev libselinux1-dev libxslt-dev libpam0g-dev git flex make libssl-dev libicu-dev libkrb5-dev libcurl4-gnutls-dev autoconf llvm-7 clang-7

set PG_CONFIG enviroment point to pgsql/bin/pg_config

git clone https://github.com/citusdata/citus.git
cd citus
./configure
make
make install

Add shared_preload_libraries to postgresql.conf

echo "shared_preload_libraries = 'citus'" >> postgres/databaase/postgresql.conf

psql template1
CREATE EXTENSION citus;