Fix oldest xmin in logical decoding.

Offering: openGaussDev

More detail: Fix oldest xmin in logical decoding.

Match-id-d652068e86f96a843c7212f959f72c855635a2ed
This commit is contained in:
openGaussDev
2022-02-28 16:54:59 +08:00
committed by yanghao
parent b3ba5e5db9
commit d45634be91
6 changed files with 40 additions and 2 deletions

View File

@ -9237,6 +9237,7 @@ int PostgresMain(int argc, char* argv[], const char* dbname, const char* usernam
InvalidTransactionTimeline, ss_need_sync_wait_all);
/* quickly set my recent global xmin */
u_sess->utils_cxt.RecentGlobalXmin = GetOldestXmin(NULL, true);
u_sess->utils_cxt.RecentGlobalCatalogXmin = GetOldestCatalogXmin();
}
}
/* check gtm mode, remote should be false, local cannot be true */