mirror of https://github.com/citusdata/citus.git
Fixes review comments
parent
2608d942a2
commit
2e00d3747f
|
@ -70,8 +70,8 @@ static AlterOwnerStmt * RecreateAlterDatabaseOwnerStmt(Oid databaseOid);
|
||||||
static char * GetLocaleProviderString(char datlocprovider);
|
static char * GetLocaleProviderString(char datlocprovider);
|
||||||
#endif
|
#endif
|
||||||
static char * GetTablespaceName(Oid tablespaceOid);
|
static char * GetTablespaceName(Oid tablespaceOid);
|
||||||
static ObjectAddress * GetDatabaseAddressFromDatabaseName(char *databaseName, bool
|
static ObjectAddress * GetDatabaseAddressFromDatabaseName(char *databaseName,
|
||||||
missingOk);
|
bool missingOk);
|
||||||
|
|
||||||
static Oid get_database_owner(Oid dbId);
|
static Oid get_database_owner(Oid dbId);
|
||||||
|
|
||||||
|
@ -192,8 +192,17 @@ PreprocessGrantOnDatabaseStmt(Node *node, const char *queryString,
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* IsSetTablespaceStatement returns true if given AlterDatabaseStmt contains
|
* Checks if the provided ALTER DATABASE statement is a SET TABLESPACE statement.
|
||||||
* 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)
|
||||||
|
|
Loading…
Reference in New Issue