create GTT on commit option overrides reloptions

This commit is contained in:
wangzhijun2018
2020-08-07 09:59:01 +08:00
parent bd7c957105
commit 51555d0772
4 changed files with 22 additions and 18 deletions

View File

@ -1612,8 +1612,7 @@ static void transformTableLikeClause(
cxt->reloptions = untransformRelOptions(reloptions);
/* remove on_commit_delete_rows option */
if (cxt->relation->relpersistence != RELPERSISTENCE_TEMP &&
cxt->relation->relpersistence != RELPERSISTENCE_GLOBAL_TEMP) {
if (cxt->relation->relpersistence != RELPERSISTENCE_GLOBAL_TEMP) {
cxt->reloptions = RemoveRelOption(cxt->reloptions, "on_commit_delete_rows", NULL);
}