mirror of
https://github.com/langchain-ai/langchain-postgres.git
synced 2026-07-16 01:33:18 -04:00
[PR #230] [CLOSED] fix: Use JSONB for metadata column instead of JSON #252
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/230
Author: @cedrickrusche
Created: 7/2/2025
Status: ❌ Closed
Base:
main← Head:feature/jsonb📝 Commits (1)
61210cdUse JSONB for metadata column instead of JSON📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
langchain_postgres/v2/engine.py(+1 -1)📄 Description
This pull request updates the metadata column type from
JSONtoJSONBin the PGVector table creation logic.📌 Motivation
The LangChain documentation recommends using the
JSONBtype for metadata storage due to its performance and indexing advantages. However, the current implementation defaults toJSON, which does not align with this guidance.✅ Changes
Replaces:
with
📎 Notes
This change does not affect existing tables.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.