From ff729a657ea0b5ef25ef0f5d1b3f11ac9cd3b9dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Wed, 25 Feb 2026 16:12:48 +0100 Subject: [PATCH] chore: disable 'pt-heartbeat' in 'PgSQL_Threads_Handler::get_variable' This isn't for functional purposes, just for consistency in reporting the motivation for disabling the feature in the codebase. --- lib/PgSQL_Thread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/PgSQL_Thread.cpp b/lib/PgSQL_Thread.cpp index 2e1cf9476..25b4b0623 100644 --- a/lib/PgSQL_Thread.cpp +++ b/lib/PgSQL_Thread.cpp @@ -1597,7 +1597,8 @@ char* PgSQL_Threads_Handler::get_variable(char* name) { // this is the public fu if (!strcasecmp(name, "monitor_username")) return strdup(variables.monitor_username); if (!strcasecmp(name, "monitor_password")) return strdup(variables.monitor_password); if (!strcasecmp(name, "monitor_dbname")) return strdup(variables.monitor_dbname); - if (!strcasecmp(name, "monitor_replication_lag_use_percona_heartbeat")) return strdup(variables.monitor_replication_lag_use_percona_heartbeat); + // NOTE: Disabled until 'pt-heartbeat' supports PostgreSQL is fixed: https://perconadev.atlassian.net/browse/PT-2030 + // if (!strcasecmp(name, "monitor_replication_lag_use_percona_heartbeat")) return strdup(variables.monitor_replication_lag_use_percona_heartbeat); } if (!strcasecmp(name, "threads")) { sprintf(intbuf, "%d", (num_threads ? num_threads : DEFAULT_NUM_THREADS));