From 9420a252d0aeb57bb3410658f08a2ded521bb33a Mon Sep 17 00:00:00 2001 From: Shayon Mukherjee Date: Tue, 4 Jun 2024 09:08:39 -0400 Subject: [PATCH] Use db user when adding tables to replication --- lib/pg_easy_replicate/orchestrate.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pg_easy_replicate/orchestrate.rb b/lib/pg_easy_replicate/orchestrate.rb index 0b46780..82d6f5c 100644 --- a/lib/pg_easy_replicate/orchestrate.rb +++ b/lib/pg_easy_replicate/orchestrate.rb @@ -106,6 +106,7 @@ def add_tables_to_publication( ADD TABLE #{quote_ident(table_name)}", connection_url: conn_string, schema: schema, + user: db_user(conn_string), ) end rescue => e