Fixes review comments

pull/7253/head
gindibay 2023-11-27 22:42:52 +03:00
parent 2608d942a2
commit 2e00d3747f
1 changed files with 13 additions and 4 deletions

View File

@ -70,8 +70,8 @@ static AlterOwnerStmt * RecreateAlterDatabaseOwnerStmt(Oid databaseOid);
static char * GetLocaleProviderString(char datlocprovider);
#endif
static char * GetTablespaceName(Oid tablespaceOid);
static ObjectAddress * GetDatabaseAddressFromDatabaseName(char *databaseName, bool
missingOk);
static ObjectAddress * GetDatabaseAddressFromDatabaseName(char *databaseName,
bool missingOk);
static Oid get_database_owner(Oid dbId);
@ -192,8 +192,17 @@ PreprocessGrantOnDatabaseStmt(Node *node, const char *queryString,
/*
* IsSetTablespaceStatement returns true if given AlterDatabaseStmt contains
* a DefElem to alter tablespace of the target database.
* Checks if the provided ALTER DATABASE statement is a SET TABLESPACE statement.
*
* This function takes a Node pointer representing a AlterDatabaseStmt, and checks
* if it is a SET TABLESPACE statement, which is used to move a table to a new
* tablespace.
*
* Parameters:
* stmt: A pointer to a Node representing AlterDatabaseStmt.
*
* Returns:
* true if the statement is a SET TABLESPACE statement, false otherwise.
*/
static bool
IsSetTablespaceStatement(AlterDatabaseStmt *stmt)