pgvector extension missing in official Railway template

adone56
HOBBY

4 months ago

I deployed the pgvector PostgreSQL template (Docker: pgvector/pgvector:pg16) via this Railway template.

The service launches, but when I run:

CREATE EXTENSION IF NOT EXISTS pgvector;

I get:
ERROR: extension "pgvector" is not available

DETAIL: Could not open extension control file "/usr/share/postgresql/16/extension/pgvector.control"

I checked with:

SELECT * FROM pg_available_extensions WHERE name = 'vector';

→ No result.

Please confirm if the template is broken or if I need to do something extra.

Solved

3 Replies

4 months ago

Hello,

The service you linked to this ticket is not a pgvector service, it is a standard stock Postgres service.

If you want pgvector, please deploy the pgvector template from the + Create -> Template menu.

Best,
Brody


Status changed to Awaiting User Response Railway 4 months ago


brody

Hello,The service you linked to this ticket is not a pgvector service, it is a standard stock Postgres service.If you want pgvector, please deploy the pgvector template from the + Create -> Template menu.Best,Brody

adone56
HOBBY

4 months ago

I followed your instructions and deployed the pgvector template via the + New → Template path inside my project, and I still get the same error:

Could not open extension control file "/usr/share/postgresql/16/extension/pgvector.control"

Please confirm that your image has pgvector actually installed on disk.


Status changed to Awaiting Railway Response Railway 4 months ago


4 months ago

Yes, the deployed database now does have pgvector installed.

Please see their docs going forward -

https://github.com/pgvector/pgvector?tab=readme-ov-file#getting-started


Status changed to Awaiting User Response Railway 4 months ago


Status changed to Solved brody 4 months ago


pgvector extension missing in official Railway template - Railway Help Station