Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(data-imports): stop reporting queue Postgres startup recovery as error-tracking noise (#79258)

Tom Owers65f266df5a99
diff --git a/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/postgres_queue/test_consumer.py b/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/postgres_queue/test_consumer.py
index 16640b9df02b..03fc7baa885d 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/postgres_queue/test_consumer.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/postgres_queue/test_consumer.py
@@ -916,6 +916,15 @@ class TestQueueOperationTimeouts:
[
("the database system is starting up", True),
("the database system is not yet accepting connections", True),
+ (
+ # Verbatim from the reported error-tracking issue: the refusal arrives with a
+ # trailing DETAIL line, so the classifier must match on a substring of a
+ # multi-line message rather than the bare phrase.
+ 'connection failed: connection to server at "172.18.0.8", port 5432 failed: '
+ "FATAL: the database system is not yet accepting connections\n"
+ "DETAIL: Consistent recovery state has not been yet reached.",
+ True,
+ ),
(
'connection failed: connection to server at "10.0.0.5", port 5432 failed: '
"FATAL: the database system is in recovery mode",