From 8e669ab3206c7462da8ba6514988bc38a0725fa3 Mon Sep 17 00:00:00 2001 From: Gabriele Bartolini Date: Wed, 13 Sep 2023 18:51:00 +0200 Subject: [PATCH] feat: add `pgvector` extension (#71) AI is a hot topic in Cloud Native environments (not only there). Providing a way to easily add `pgvector` to CloudNativePG deployments can potentially increase the adoption of Postgres in these contexts. It is an extension that can be fully controlled by a standard Postgres user, like the application user in CloudNativePG, without requiring any settings in shared_preload_libraries. License-wise that extension creates no problems. Closes #70 Signed-off-by: Gabriele Bartolini --- Debian/Dockerfile-beta.template | 1 + Debian/Dockerfile.template | 1 + README.md | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/Debian/Dockerfile-beta.template b/Debian/Dockerfile-beta.template index 5e0a66b4..ad175b97 100644 --- a/Debian/Dockerfile-beta.template +++ b/Debian/Dockerfile-beta.template @@ -30,6 +30,7 @@ COPY requirements.txt / RUN set -xe; \ apt-get update; \ apt-get install -y --no-install-recommends \ + "postgresql-${PG_MAJOR}-pgvector" \ "postgresql-${PG_MAJOR}-pgaudit" \ ; \ rm -fr /tmp/* ; \ diff --git a/Debian/Dockerfile.template b/Debian/Dockerfile.template index 9a47430b..24cbb6d3 100644 --- a/Debian/Dockerfile.template +++ b/Debian/Dockerfile.template @@ -33,6 +33,7 @@ RUN set -xe; \ apt-get update; \ apt-get install -y --no-install-recommends \ "postgresql-${PG_MAJOR}-pgaudit" \ + "postgresql-${PG_MAJOR}-pgvector" \ "postgresql-${PG_MAJOR}-pg-failover-slots" \ ; \ rm -fr /tmp/* ; \ diff --git a/README.md b/README.md index 2bf72476..8c8604fc 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ by adding the following software: - Barman Cloud - PGAudit - Postgres Failover Slots +- pgvector Barman Cloud is distributed by EnterpriseDB under the [GNU GPL 3 License](https://github.com/EnterpriseDB/barman/blob/master/LICENSE). @@ -22,6 +23,9 @@ PGAudit is distributed under the Postgres Failover Slots is distributed by EnterpriseDB under the [PostgreSQL License](https://github.com/EnterpriseDB/pg_failover_slots/blob/master/LICENSE). +pgvector is distributed under the +[PostgreSQL License](https://github.com/pgvector/pgvector/blob/master/LICENSE). + Images are available via [GitHub Container Registry](https://github.com/cloudnative-pg/postgres-containers/pkgs/container/postgresql).