#Перенести расширения в папку Contrib
|
В данной версии расширения уже перенесены
|
Стандартные:
|
|
amcheck auth_delay auto_explain basebackup_to_shell basic_archive bloom btree_gin btree_gist citext cube dblink dict_int dict_xsyn earthdistance file_fdw fuzzystrmatch hstore hstore_plperl hstore_plpython intagg intarray isn jsonb_plperl jsonb_plpython lo ltree ltree_plpython oid2name pageinspect passwordcheck pg_buffercache pgcrypto pg_freespacemap pg_logicalinspect pg_overexplain pg_prewarm pgrowlocks pg_stat_statements pgstattuple pg_surgery pg_trgm pg_visibility pg_walinspect postgres_fdw seg sepgsql spi sslinfo start-scripts tablefunc tcn test_decoding tsm_system_rows tsm_system_time unaccent uuid-ossp vacuumlo xml2
|
|
|
# Настройки сборки
|
export OPTIMIZATION=2
|
export NLS=yes
|
|
|
# Запуск конфигурации
|
./configure CFLAGS="-O$OPTIMIZATION -DDEPLOY_VERSION=$(date +"%Y%m%d")" \
|
--prefix=/usr/local/rudb \
|
--with-pgport=5445 \
|
--with-openssl \
|
--with-includes=/usr/include \
|
--with-libraries=/usr/lib \
|
--with-libxml \
|
--with-ldap \
|
--with-pam \
|
--with-uuid=e2fs \
|
--with-libxslt \
|
--with-icu \
|
--enable-tap-tests \
|
--with-systemd \
|
--enable-nls \
|
--with-selinux \
|
--enable-thread-safety \
|
--with-gnu-ld \
|
--with-perl \
|
--with-python
|
|
#Сборка ядра
|
|
make -j$(nproc)
|
sudo make install
|
|
#Поочередная сборка расширений (Contrib)
|
# pldotnet исключен из общего цикла и собирается только отдельно
|
cd contrib && ./check_build_config.sh
|
|
#Отдельная сборка pldotnet
|
cd contrib/pldotnet
|
sudo bash ./prepare_linux_build_env.sh
|
PG_CONFIG=/usr/local/rudb/bin/pg_config bash ./build_install.sh
|
|
# Создание папки данных
|
mkdir ~/rudb_data
|
|
# Инициализация
|
/usr/local/rudb/bin/initdb -D ~/rudb_data
|
|
# Запуск сервера
|
/usr/local/rudb/bin/pg_ctl -D ~/rudb_data -l logfile start
|
|
# Подключение к базе (Порт 5445)
|
/usr/local/rudb/bin/psql -p 5445 -d postgres
|