LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangGraph
  • Web
  • Channels
  • Pregel
  • Prebuilt
  • Remote
LangGraph SDK
  • Client
  • Auth
  • React
  • Logging
  • React Ui
  • Server
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
  • Store
LangGraph Checkpoint Redis
  • Shallow
  • Store
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
  • Cli
LangGraph API
LangGraph CLI
LangGraph CUA
  • Utils
LangGraph Supervisor
LangGraph Swarm
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangGraph
WebChannelsPregelPrebuiltRemote
LangGraph SDK
ClientAuthReactLoggingReact UiServer
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
Store
LangGraph Checkpoint Redis
ShallowStore
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
Cli
LangGraph API
LangGraph CLI
LangGraph CUA
Utils
LangGraph Supervisor
LangGraph Swarm
Language
Theme
JavaScript@langchain/langgraph-checkpoint-postgresstorePostgresStoreConfig
Interfaceā—Since v0.0

PostgresStoreConfig

Copy
interface PostgresStoreConfig

Properties

View source on GitHub
property
connectionOptions: string | PoolConfig
property
ensureTables: boolean
property
index: IndexConfig
property
schema: string
property
textSearchLanguage: string
property
ttl: TTLConfig

PostgreSQL connection string or connection configuration object.

Whether to automatically create tables if they don't exist.

Vector search configuration for semantic search capabilities. If provided, enables vector similarity search using pgvector extension.

Database schema name to use for store tables.

Language for PostgreSQL full-text search operations. Supports any language configuration available in PostgreSQL.

TTL configuration for automatic expiration of items.

Copy
// Connection string
"postgresql://user:password@localhost:5432/database"

// Configuration object
{
  host: "localhost",
  port: 5432,
  database: "mydb",
  user: "postgres",
  password: "password"
}