From 9c9bcb46d08c53299252ccffb8e385b3f1846d8e Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Fri, 17 Nov 2023 15:07:42 +0100 Subject: [PATCH] Fix getting status --- posthog/api/instance_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog/api/instance_status.py b/posthog/api/instance_status.py index abdfcdad25dea..6e3a693bfce7c 100644 --- a/posthog/api/instance_status.py +++ b/posthog/api/instance_status.py @@ -92,7 +92,7 @@ def list(self, request: Request) -> Response: } ) if postgres_alive: - postgres_version = connection.cursor().connection.server_version + postgres_version = connection.cursor().connection.info.server_version metrics.append( { "key": "pg_version",