From bbac29a29c925ded50c4f84d4addb18be3be8db7 Mon Sep 17 00:00:00 2001 From: Arthur Zakirov Date: Mon, 19 Nov 2018 17:08:56 +0300 Subject: [PATCH] PGPRO-2071: Use local dbname to connect to a server to get ptrack pagemap --- src/backup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backup.c b/src/backup.c index c62ca9e9..fc47d22d 100644 --- a/src/backup.c +++ b/src/backup.c @@ -1343,7 +1343,7 @@ pg_ptrack_clear(void) tblspcOid = atoi(PQgetvalue(res_db, i, 2)); tmp_conn = pgut_connect(instance_config.pghost, instance_config.pgport, - instance_config.pgdatabase, + dbname, instance_config.pguser); res = pgut_execute(tmp_conn, "SELECT pg_catalog.pg_ptrack_clear()", 0, NULL); @@ -1461,7 +1461,7 @@ pg_ptrack_get_and_clear(Oid tablespace_oid, Oid db_oid, Oid rel_filenode, } tmp_conn = pgut_connect(instance_config.pghost, instance_config.pgport, - instance_config.pgdatabase, + dbname, instance_config.pguser); sprintf(params[0], "%i", tablespace_oid); sprintf(params[1], "%i", rel_filenode);