!2192 解决autovacuum_mode为none时,cstore中delta表仍迁移至主表的问题

Merge pull request !2192 from 陈栋/bugfix
This commit is contained in:
opengauss-bot
2022-09-22 11:58:25 +00:00
committed by Gitee

View File

@ -3235,7 +3235,8 @@ static void relation_needs_vacanalyze(Oid relid, AutoVacOpts* relopts, bytea* ra
AUTOVAC_LOG(DEBUG2, "vac \"%s\": need freeze is %s", NameStr(classForm->relname), force_vacuum ? "true" : "false");
/* Is time to move rows from delta to main cstore table by vacuum? */
if (rawRelopts != NULL && StdRelOptIsColStore(rawRelopts) && g_instance.attr.attr_storage.enable_delta_store) {
if (rawRelopts != NULL && StdRelOptIsColStore(rawRelopts) &&
g_instance.attr.attr_storage.enable_delta_store && DO_VACUUM) {
PgStat_StatDBEntry *dbentry = pgstat_fetch_stat_dbentry(u_sess->proc_cxt.MyDatabaseId);;
PgStat_StatDBEntry *shared = pgstat_fetch_stat_dbentry(InvalidOid);