mirror of
https://github.com/langchain-ai/langchain-postgres.git
synced 2026-07-16 01:33:18 -04:00
[PR #239] [CLOSED] fix: PGVector --> PGVectorStore: migration fails for a custom db schema #255
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langchain-ai/langchain-postgres/pull/239
Author: @NisugaJ
Created: 8/1/2025
Status: ❌ Closed
Base:
main← Head:main📝 Commits (10+)
cd3c6f4get the table in the specified schema of the vector store60aa42edocstring and concatf41f74aDEFAULT_SCHEMAe707727Revert "DEFAULT_SCHEMA"f278b80Revert "get the table in the specified schema of the vector store"84b4a8cAdd async method to create database schema for PGVectorStore7289666Refactor table name handling to include schema in PGVectorStore testsb736ec1Refactor table name handling to ensure schema is included in vector store testsfec4163Simplify schema creation method documentation and remove duplicate error handling21333d9Improve validation for schema name in _ainit_database_schema method📊 Changes
2 files changed (+105 additions, -53 deletions)
View changed files
📝
langchain_postgres/v2/engine.py(+21 -0)📝
tests/unit_tests/v2/test_pg_vectorstore.py(+84 -53)📄 Description
The internal
__amigrate_pgvector_collectionfails to select the table if the new table is in a custom db schema.This fix will help who wants to upgrade (to
v0.0.14+) .Also, I have added DEFAULT_SCHEMA to
test_pg_vectorstore.py.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.