How to use pgvector in railway's postgres database?
byteupai
FREEOP

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?

Solved

0 Replies

byteupai
FREEOP

a year ago

abb46987-3c03-44a4-9717-c0ad17b59a6f


brody
EMPLOYEE

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


byteupai
FREEOP

a year ago

is there are any blog or any guide video so it will help me a lot


brody
EMPLOYEE

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


byteupai
FREEOP

a year ago

how to do that in fresh new database


byteupai
FREEOP

a year ago

I have explored some options but didn't understand properly


brody
EMPLOYEE

a year ago

are you asking how to deploy pgvector?


byteupai
FREEOP

a year ago

yes


byteupai
FREEOP

a year ago

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)


brody
EMPLOYEE

a year ago

open up your project, click the + Create button at the top right, choose template, search for "pgvector", then click deploy template


brody
EMPLOYEE

a year ago

you have a regular database deployed, you need to deploy pgvector first


byteupai
FREEOP

a year ago

1324629743328432000


brody
EMPLOYEE

a year ago

give this page a read -

then follow the steps i have provided


byteupai
FREEOP

a year ago

I have added the template in my postgres database


byteupai
FREEOP

a year ago

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.


byteupai
FREEOP

a year ago

check this


byteupai
FREEOP

a year ago

1324640449818005500


brody
EMPLOYEE

a year ago

you need to connect to the pgvector database


byteupai
FREEOP

a year ago

how?


brody
EMPLOYEE

a year ago

the same way you connect to Postgres


byteupai
FREEOP

a year ago

1324643530924228600


byteupai
FREEOP

a year ago

like this?


byteupai
FREEOP

a year ago

?


byteupai
FREEOP

a year ago

?


byteupai
FREEOP

a year ago

Done!


byteupai
FREEOP

a year ago

thanks


byteupai
FREEOP

a year ago

solved


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody 11 months ago


Loading...