如何安装PostgreSQL-17的Citus扩展名?我一直在许多搜索门户上寻找它。 我的意图是为Postgres-17版本安装Citus Extension,任何帮助都非常感谢。
I有合金DB群集和VM实例Ubuntu 24.04 Pro Server LTS在Google Cloud上,与Docker Postgres Citus配合良好。 默认情况下,Google在此实例上安装了PostgreSQL-17,我找不到此Postgres-17版本的正确等效的Citus扩展名。 我尝试了以下步骤:这是来自Citus Portal:它不起作用,因为我的实例具有Postgres-17:
curl https://install.citusdata.com/community/deb.sh | sudo bash
sudo apt-get -y install postgresql-16-citus-12.1
sudo pg_conftool 16 main set shared_preload_libraries citus
这是来自Citus github,这不起作用,因为它具有Citus 12.1 Postgres-16的扩展:
git clone https://github.com/citusdata/citus.git
cd citus
./configure
make
sudo make install
自码头以来,这起作用,但这不是我最喜欢的选择:
# run PostgreSQL with Citus on port 5500
docker run -d --name citus -p 5500:5432 -e POSTGRES_PASSWORD=mypassword citusdata/citus
# connect using psql within the Docker container
docker exec -it citus psql -U postgres
# or, connect using local psql
psql -U postgres -d postgres -h localhost -p 5500
这对我有用:
apt-get install -y --no-install-recommends \
postgresql-server-dev-17 \
libkrb5-dev \
git \
cmake \
libcurl4-openssl-dev \
libzstd-dev \
build-essential \
libselinux1-dev \
libxslt1-dev \
libpam-dev \
liblz4-dev \
libreadline-dev \
autoconf \
zlib1g-dev
git clone -b release-13.0 --depth 1 https://github.com/citusdata/citus.git
cd citus && make -s clean && make -s -j8 install
cp /usr/lib/postgresql/17/lib/citus*.so /usr/lib/postgresql/17/lib
cp /usr/share/postgresql/17/extension/citus* /usr/share/postgresql/17/extension/