Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save charlesteh/0c5c0952eb803a1ce5e4c327251a2174 to your computer and use it in GitHub Desktop.

Select an option

Save charlesteh/0c5c0952eb803a1ce5e4c327251a2174 to your computer and use it in GitHub Desktop.
How to install pgvector in vanilla postgresql
sudo apt install postgresql-15-pgvector
sudo -u postgres psql
CREATE EXTENSION vector;
@charlesteh

Copy link
Copy Markdown
Author

If permission denied must be superuser:

ALTER ROLE dbuser SUPERUSER;

@charlesteh

Copy link
Copy Markdown
Author

PostgreSQL 18: sudo apt install postgresql-18-pgvector
sudo -u postgres psql

usually migratiosn will have CREATE EXTENSION vector; if not just run this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment