You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PostgresChatMessageHistory ignores schema_name and reads and writes the table in public #444
Currently, AsyncPostgresChatMessageHistory.create checks the table in the given schema_name but then returns cls(cls.__create_key, engine._pool, session_id, table_name) without it, so the instance keeps the default "public". Every add_message, messages and clear call then goes to "public"."<table_name>": with a same-named table in public, a history created for another schema writes its messages there and reads that table's messages; without one, the calls fail. PostgresChatMessageHistory.create / create_sync go through the same create. The AlloyDB package passes schema_name in the same line.
Environment details
OS type and version: macOS 26.7.1, arm64 (Darwin 25.6.0)
Activity