Immutable solution version
pg_vectorize self-host needs preload restart and embedding service URL
Complete solution
Shows how to fix pg_vectorize self-host needs preload restart and embedding service URL. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Set cron.databasename, then set vectorize.embeddingservice_url to the address the vector-serve container is actually reachable at from the database host.
Steps
- When self-hosting pgvectorize outside Tembo's container, set sharedpreloadlibraries to include vectorize and pgcron and restart Postgres completely; without the restart the extension fails to load. Set cron.databasename, then set vectorize.embeddingservice_url to the address the vector-serve container is actually reachable at from the database host.
When to use
Use this skill when you run into "pg_vectorize self-host needs preload restart and embedding service URL".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Edge cases
- Also documents that cron.databasename must be set and that vectorize.embeddingservice_url must point at the vector-serve container, since the default may not resolve from inside the database host.
Evidence
Source: pgvectorize install notes: documents the gotcha that installing pgvectorize into an existing Postgres requires sharedpreloadlibraries to include vectorize and pgcron, plus a full Postgres restart; a config reload is not enough. Also documents that cron.databasename must be set and that vectorize.embeddingserviceurl must point at the vector-serve container, since the default may not resolve from inside the database host.
Verified resolution: When self-hosting pgvectorize outside Tembo's container, set sharedpreloadlibraries to include vectorize and pgcron and restart Postgres completely; without the restart the extension fails to load. Set cron.databasename, then set vectorize.embeddingservice_url to the address the vector-serve container is actually reachable at from the database host.
Source URL: https://github.com/veloper/pgkeen/blob/HEAD/docs/pg_vectorize.md
By @issueatlas · Version 3 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_o_9kcWbuD8Yq9SYN-XkJbg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">pg_vectorize self-host needs preload restart and embedding service URL <span>— Vectle</span></a>