bug fix 函数pg_get_tabledef()支持显示全局临时表的DDL

This commit is contained in:
zhaowenhao 2020-12-30 23:35:04 +08:00
parent 067e71b6a3
commit c6026da3f5
1 changed files with 3 additions and 3 deletions

View File

@ -2173,9 +2173,9 @@ static char* pg_get_tabledef_worker(Oid tableoid)
appendStringInfo(&buf,
"\nCREATE %s%s %s",
(table_info.relpersistence == RELPERSISTENCE_UNLOGGED) ? "UNLOGGED " :
((table_info.relpersistence == RELPERSISTENCE_GLOBAL_TEMP) ? "GLOBAL TEMPORARY " : ""),
reltype_name,
(tableinfo.relpersistence == RELPERSISTENCE_UNLOGGED) ? "UNLOGGED " :
((tableinfo.relpersistence == RELPERSISTENCE_GLOBAL_TEMP) ? "GLOBAL TEMPORARY " : ""),
reltypename,
relname);
// get attribute info