-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate key value violates unique constraint "pg_extension_name_index" #1561
Comments
Hello @digvjs! Welcome to the ai16z community. Thank you for opening your first issue; we appreciate your contribution. You are now a ai16z contributor! |
Can you update me on this ? |
Modified the schema.sql and added below code -
There is no other place I am creating the extension again. Still getting below errors -
|
Deffo need to look in the PG |
- Add proper checks for vector extension existence - Create extensions schema if not exists - Add extensions schema to search path - Ensure idempotent schema creation
…sion fix(postgres): Handle vector extension creation properly (#1561)
…ector-extension Revert "fix(postgres): Handle vector extension creation properly (#1561)"
* 'develop' of github.com:elizaOS/eliza: (478 commits) chore: bump version to v.0.1.7 fix: generatioon tests for trimTokens chore: install with no frozen-lockfile flag Revert "fix(postgres): Handle vector extension creation properly (elizaOS#1561)" chore: remove unused import and var Removed FerePro plugin fix: line break handling in chat fix: handle env using runtime getSetting function feat: add validation to trimTokens feat: add JsDoc to trimTokens function Move encoding into try block to handle potential errors during model encoding. fall back if unsupported type fix(client): improve Windows compatibility for Vite dev server remove tokenizer service clean code restore test clean code move trimTokens to core feat: add Serbian README translation and enhance main README with new features and setup instructions use elizaLogger ...
This is probably closed by the PR i push (#1743) |
- Add proper checks for vector extension existence - Create extensions schema if not exists - Add extensions schema to search path - Ensure idempotent schema creation
…r-extension fix(postgres): Handle vector extension creation properly (elizaOS#1561)
…-1561-vector-extension Revert "fix(postgres): Handle vector extension creation properly (elizaOS#1561)"
Hi All,
I cloned the repository
https://github.com/elizaos/eliza.git
and checked out thev0.1.7-alpha.1
tag. The database adapter I am using is the PostgreSQL vector DB, specifically the Docker imagepgvector/pgvector:pg16
from Docker Hub.Upon running
pnpm start
, the PostgreSQL database is populated with all the required tables, but I encounter the following error (see the attached image):This issue occurs even when I do a fresh clone of the eliza project.
Environment Details:
Node version:
23.3.0
pnpm version:
9.15.2
PostgreSQL Docker Image:
pgvector/pgvector:pg16
Thanks in Advance!
The text was updated successfully, but these errors were encountered: