From 2791ad0977465cbc69c447bcaee69e7863e9a207 Mon Sep 17 00:00:00 2001 From: Jiangzhou He Date: Mon, 1 Sep 2025 19:15:01 -0700 Subject: [PATCH] example: switch the postgres source example to use change notification --- examples/postgres_source/main.py | 2 +- examples/postgres_source/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/postgres_source/main.py b/examples/postgres_source/main.py index 45bfa5e0..deef6172 100644 --- a/examples/postgres_source/main.py +++ b/examples/postgres_source/main.py @@ -63,8 +63,8 @@ def postgres_product_indexing_flow( ), # Optional. ordinal_column="modified_time", + notification=cocoindex.sources.PostgresNotification(), ), - refresh_interval=datetime.timedelta(seconds=30), ) indexed_product = data_scope.add_collector() diff --git a/examples/postgres_source/pyproject.toml b/examples/postgres_source/pyproject.toml index 5bd7c58b..05132026 100644 --- a/examples/postgres_source/pyproject.toml +++ b/examples/postgres_source/pyproject.toml @@ -4,7 +4,7 @@ version = "0.1.0" description = "Demonstrate how to use Postgres tables as the source for CocoIndex." requires-python = ">=3.11" dependencies = [ - "cocoindex[embeddings]>=0.2.1", + "cocoindex[embeddings]>=0.2.3", "python-dotenv>=1.0.1", "pgvector>=0.4.1", "psycopg[binary,pool]",