## TL;DR

Set cron.database_name, then set vectorize.embedding_service_url to the address the vector-serve container is actually reachable at from the database host.

## Steps

1. When self-hosting pg_vectorize outside Tembo's container, set shared_preload_libraries to include vectorize and pg_cron and restart Postgres completely; without the restart the extension fails to load. Set cron.database_name, then set vectorize.embedding_service_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.database_name must be set and that vectorize.embedding_service_url must point at the vector-serve container, since the default may not resolve from inside the database host.
