Merge branch 'alter_database_additional_options' of https://github.com/citusdata/citus into alter_database_additional_options

pull/7253/head
gindibay 2023-11-27 22:23:40 +03:00
commit 2fd191a8eb
2 changed files with 2 additions and 27 deletions

View File

@ -192,17 +192,8 @@ PreprocessGrantOnDatabaseStmt(Node *node, const char *queryString,
/* /*
* Checks if the provided ALTER DATABASE statement is a SET TABLESPACE statement. * IsSetTablespaceStatement returns true if given AlterDatabaseStmt contains
* * a DefElem to alter tablespace of the target database.
* 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 static bool
IsSetTablespaceStatement(AlterDatabaseStmt *stmt) IsSetTablespaceStatement(AlterDatabaseStmt *stmt)

View File

@ -64,22 +64,6 @@ const DefElemOptionFormat alterDatabaseOptionFormats[] = {
}; };
/*
* DeparseAlterDatabaseOwnerStmt
* Deparse an AlterDatabaseOwnerStmt node
*
* This function is responsible for producing a string representation of an
* AlterDatabaseOwnerStmt node, which represents an ALTER DATABASE statement
* that changes the owner of a database. The output string includes the ALTER
* DATABASE keyword, the name of the database being altered, and the new owner
* of the database.
*
* Parameters:
* - node: a pointer to the AlterDatabaseOwnerStmt node to be deparsed
*
* Returns:
* - a string representation of the ALTER DATABASE statement
*/
char * char *
DeparseAlterDatabaseOwnerStmt(Node *node) DeparseAlterDatabaseOwnerStmt(Node *node)
{ {