From 5a123b56e5b94f07ed944cacdc09d4eac12bafdd Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Tue, 28 Mar 2023 13:46:13 +0300 Subject: [PATCH] Remove obsolete hack to rename neon-specific GUCs. I checked the console database, we don't have any of these left in production. --- compute_tools/src/pg_helpers.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/compute_tools/src/pg_helpers.rs b/compute_tools/src/pg_helpers.rs index 79f851ed13..01b192b2de 100644 --- a/compute_tools/src/pg_helpers.rs +++ b/compute_tools/src/pg_helpers.rs @@ -74,18 +74,9 @@ impl GenericOption { /// Represent `GenericOption` as configuration option. pub fn to_pg_setting(&self) -> String { if let Some(val) = &self.value { - // TODO: check in the console DB that we don't have these settings - // set for any non-deleted project and drop this override. - let name = match self.name.as_str() { - "safekeepers" => "neon.safekeepers", - "wal_acceptor_reconnect" => "neon.safekeeper_reconnect_timeout", - "wal_acceptor_connection_timeout" => "neon.safekeeper_connection_timeout", - it => it, - }; - match self.vartype.as_ref() { - "string" => format!("{} = '{}'", name, escape_conf_value(val)), - _ => format!("{} = {}", name, val), + "string" => format!("{} = '{}'", self.name, escape_conf_value(val)), + _ => format!("{} = {}", self.name, val), } } else { self.name.to_owned()