Troubleshooting
Workers Not Starting
-
Verify
shared_preload_libraries:SHOW shared_preload_libraries; -
Check PostgreSQL logs for errors
-
Ensure proper permissions on API key file
Workers Not Processing After CREATE EXTENSION
Background workers start with PostgreSQL — before the extension is created. Workers automatically detect the extension using exponential backoff (checking every 5s, 10s, 20s, ... up to 5 minutes). After running CREATE EXTENSION pgedge_vectorizer, workers should discover it within seconds.
If workers don't start processing:
-
Check the logs for messages like:
pgedge_vectorizer worker 1: extension not installed in database 'mydb', will check again in 5s (hint: run CREATE EXTENSION pgedge_vectorizer) -
Verify the extension was created in a database listed in
pgedge_vectorizer.databases:SHOW pgedge_vectorizer.databases; -
If needed, reload the configuration to reset the detection interval:
SELECT pg_reload_conf();
Slow Processing
-
Increase workers:
ALTER SYSTEM SET pgedge_vectorizer.num_workers = 4; -- Requires restart -
Increase batch size:
ALTER SYSTEM SET pgedge_vectorizer.batch_size = 20; SELECT pg_reload_conf();
Failed Embeddings
- Check API key is valid
- Verify network connectivity
-
Review error messages:
SELECT * FROM pgedge_vectorizer.failed_items; -
Retry failed items:
SELECT pgedge_vectorizer.retry_failed();