GithubHelp home page GithubHelp logo

chkpwd / cdpgvecto.rs Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 6.0 31 KB

PostgreSQL Image with vecto.rs support based on CrunchyData Postgres images.

License: Apache License 2.0

Dockerfile 100.00%
crunchydata docker postgresql vector-database kubernetes

cdpgvecto.rs's Introduction

CrunchyData PGO with pgvecto.rs Extension

This repository contains container images for CrunchyData PGO that include the pgvecto.rs extension.

Important Configuration Note

⚠️ If you are deploying this image on an existing database: The postgres configuration must be updated to enable the pgvecto.rs extension.

To enable the extension, you need to set the shared_preload_libraries and search_path in your Cluster spec. Add the following configuration to your PostgresCluster yaml file:

apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
spec:
  ...
  patroni:
    dynamicConfiguration:
      postgresql:
        synchronous_commit: "on"
        parameters:
          shared_preload_libraries: "vectors.so"
          search_path: '"$user", public, vectors'

⚠️ If you want to do a major Postgres version upgrade like described in the official docs, make sure you do the following steps or the upgrade will fail:

  1. Connect to the database where you have enabled the vectors extension and disable it with DROP EXTENSION vectors;.
  2. Remove the dynamicConfiguration block you added to PostgresCluster from above.
  3. Follow the upgrade instruction from the official doc.
  4. Add back the dynamicConfiguration block and enable the extension in the database again with CREATE EXTENSION vectors;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.