a year ago
I am unable to use the pgvector in my existing postgres database. can you guide how to deploy it in my existing database and how can I use it?
0 Replies
a year ago
you would want to deploy the pgvector template into your account, and then pgbackup the old database, and pgrestore to the new database
a year ago
i'm sure there are plently of articles out there on how to use pgbackup and pgrestore that would help you, they would be just a quick online search away
a year ago
are you asking how to deploy pgvector?
I have deployed but when I am using this command then it saying
railway=# SELECT * FROM pgavailableextensions WHERE name = 'vector';
name | defaultversion | installedversion | comment
------+-----------------+-------------------+---------
(0 rows)
a year ago
open up your project, click the + Create button at the top right, choose template, search for "pgvector", then click deploy template
a year ago
you have a regular database deployed, you need to deploy pgvector first
a year ago
give this page a read -
then follow the steps i have provided
but still getting this issue:
railway=# CREATE EXTENSION IF NOT EXISTS vector;
ERROR: extension "vector" is not available
DETAIL: Could not open extension control file "/usr/share/postgresql/16/extension/vector.control": No such file or directory.
HINT: The extension must first be installed on the system where PostgreSQL is running.
a year ago
you need to connect to the pgvector database
a year ago
the same way you connect to Postgres
a year ago
!s
Status changed to Solved brody • 11 months ago


