PostgreSQL and PGvector
andreisovidiu
HOBBYOP

9 months ago

Hi everyone, any advice on how can I link them?
Locally I am using a PGvector docker image and Postgres.

Solved

0 Replies

andreisovidiu
HOBBYOP

9 months ago

N/A


adam
MODERATOR

9 months ago

The common pgvector template on Railway (this one) includes postgres, so there's no need to have another postgres service as well


adam
MODERATOR

9 months ago

You would want to connect your easylanguagecomp service to the pgvector service using the pgvector service's private URL, which can be found in the environment variables page of that service.


adam
MODERATOR

9 months ago

If you create a reference variable in the easylanguagecomp service that references the pgvector's private URL, an arrow will appear on the canvas to visualize the link


adam
MODERATOR

9 months ago

Reading the template description for the pgvector template will give you some tips. https://railway.com/template/3jJFCA


andreisovidiu
HOBBYOP

9 months ago

Will read that first, thank you Adam


andreisovidiu
HOBBYOP

9 months ago

Is it possible that the DATABASEURLPRIVATE raises an error but DATABASE_URL works? Is there a difference other than the port?


andreisovidiu
HOBBYOP

9 months ago

I get "[Errno -2] Name or service not known" when using the PRIVATE one


adam
MODERATOR

9 months ago

There are some large differences between the public and private URL. The private URL can only be used with the service deployed on Railway, not locally. It utilizes the private network rather than the public network, which removes egress fees. The public URL is the publically exposed URL. this can be used locally



andreisovidiu
HOBBYOP

9 months ago

Thank you. Where can I run SQL to test if it is connected?
I completed the migrations but the "data" interface does not appear in PGvector as it did in postgres.

1343309071180370200


adam
MODERATOR

9 months ago

connect to the database with a database client like dbgate https://dbgate.org/download-community/


adam
MODERATOR

9 months ago

The data tab isn't very reliable, I never use it


andreisovidiu
HOBBYOP

9 months ago

I guess PGadmin would work too?


adam
MODERATOR

9 months ago

Yep, that would work


andreisovidiu
HOBBYOP

9 months ago

Thank you Adam


adam
MODERATOR

9 months ago

No problem, marking as solved now. If you have any further questions, please open a new thread


adam
MODERATOR

9 months ago

!s


Status changed to Solved adam 10 months ago


Loading...