函数pgaudit_ProcessUtility内T_AlterTableStmt分支判断sequence有误

This commit is contained in:
lilong
2023-01-04 10:36:42 +08:00
parent ee3b7bcb4c
commit 70e850a384

View File

@ -1381,7 +1381,7 @@ static void pgaudit_ProcessUtility(Node* parsetree, const char* queryString, Par
} break;
case T_AlterTableStmt: {
AlterTableStmt* altertablestmt = (AlterTableStmt*)(parsetree); /* Audit alter table */
if (RELKIND_IS_SEQUENCE(altertablestmt->relkind)) {
if (OBJECT_SEQUENCE == altertablestmt->relkind || OBJECT_LARGE_SEQUENCE == altertablestmt->relkind) {
pgaudit_ddl_sequence(altertablestmt->relation->relname, queryString);
} else {
pgaudit_ddl_table(altertablestmt->relation->relname, queryString);