mirror of https://github.com/citusdata/citus.git
Fixes indentation
parent
1e7c18cb61
commit
cef9ac702e
|
@ -86,6 +86,7 @@ AlterDatabaseOwnerObjectAddress(Node *node, bool missing_ok, bool isPostprocess)
|
||||||
return list_make1(address);
|
return list_make1(address);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* DatabaseOwnerDDLCommands returns a list of sql statements to idempotently apply a
|
* DatabaseOwnerDDLCommands returns a list of sql statements to idempotently apply a
|
||||||
* change of the database owner on the workers so that the database is owned by the same
|
* change of the database owner on the workers so that the database is owned by the same
|
||||||
|
@ -98,6 +99,7 @@ DatabaseOwnerDDLCommands(const ObjectAddress *address)
|
||||||
return list_make1(DeparseTreeNode(stmt));
|
return list_make1(DeparseTreeNode(stmt));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* RecreateAlterDatabaseOwnerStmt creates an AlterOwnerStmt that represents the operation
|
* RecreateAlterDatabaseOwnerStmt creates an AlterOwnerStmt that represents the operation
|
||||||
* of changing the owner of the database to its current owner.
|
* of changing the owner of the database to its current owner.
|
||||||
|
@ -118,6 +120,7 @@ RecreateAlterDatabaseOwnerStmt(Oid databaseOid)
|
||||||
return stmt;
|
return stmt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* get_database_owner returns the Oid of the role owning the database
|
* get_database_owner returns the Oid of the role owning the database
|
||||||
*/
|
*/
|
||||||
|
@ -138,6 +141,7 @@ get_database_owner(Oid db_oid)
|
||||||
return dba;
|
return dba;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* PreprocessGrantOnDatabaseStmt is executed before the statement is applied to the local
|
* PreprocessGrantOnDatabaseStmt is executed before the statement is applied to the local
|
||||||
* postgres instance.
|
* postgres instance.
|
||||||
|
@ -175,6 +179,7 @@ PreprocessGrantOnDatabaseStmt(Node *node, const char *queryString,
|
||||||
return NodeDDLTaskList(NON_COORDINATOR_NODES, commands);
|
return NodeDDLTaskList(NON_COORDINATOR_NODES, commands);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* PreprocessAlterDatabaseStmt is executed before the statement is applied to the local
|
* PreprocessAlterDatabaseStmt is executed before the statement is applied to the local
|
||||||
* postgres instance.
|
* postgres instance.
|
||||||
|
@ -204,6 +209,7 @@ PreprocessAlterDatabaseStmt(Node *node, const char *queryString,
|
||||||
return NodeDDLTaskList(NON_COORDINATOR_NODES, commands);
|
return NodeDDLTaskList(NON_COORDINATOR_NODES, commands);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if PG_VERSION_NUM >= PG_VERSION_15
|
#if PG_VERSION_NUM >= PG_VERSION_15
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -235,6 +241,7 @@ PreprocessAlterDatabaseRefreshCollStmt(Node *node, const char *queryString,
|
||||||
return NodeDDLTaskList(NON_COORDINATOR_NODES, commands);
|
return NodeDDLTaskList(NON_COORDINATOR_NODES, commands);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -320,7 +327,8 @@ PostprocessCreateDatabaseStmt(Node *node, const char *queryString)
|
||||||
*
|
*
|
||||||
* We do not do this right now because of the AssignDatabaseToShard at the end.
|
* We do not do this right now because of the AssignDatabaseToShard at the end.
|
||||||
*/
|
*/
|
||||||
List *workerNodes = TargetWorkerSetNodeList(NON_COORDINATOR_METADATA_NODES, RowShareLock);
|
List *workerNodes = TargetWorkerSetNodeList(NON_COORDINATOR_METADATA_NODES,
|
||||||
|
RowShareLock);
|
||||||
if (list_length(workerNodes) > 0)
|
if (list_length(workerNodes) > 0)
|
||||||
{
|
{
|
||||||
char *createDatabaseCommand = DeparseTreeNode(node);
|
char *createDatabaseCommand = DeparseTreeNode(node);
|
||||||
|
@ -350,16 +358,17 @@ PostprocessCreateDatabaseStmt(Node *node, const char *queryString)
|
||||||
MarkObjectDistributed(&dbAddress);
|
MarkObjectDistributed(&dbAddress);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return NIL;
|
return NIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* citus_internal_database_command is an internal UDF to
|
* citus_internal_database_command is an internal UDF to
|
||||||
* create/drop a database in an idempotent maner without
|
* create/drop a database in an idempotent maner without
|
||||||
* transaction block restrictions.
|
* transaction block restrictions.
|
||||||
*/
|
*/
|
||||||
Datum citus_internal_database_command(PG_FUNCTION_ARGS)
|
Datum
|
||||||
|
citus_internal_database_command(PG_FUNCTION_ARGS)
|
||||||
{
|
{
|
||||||
int saveNestLevel = NewGUCNestLevel();
|
int saveNestLevel = NewGUCNestLevel();
|
||||||
text *commandText = PG_GETARG_TEXT_P(0);
|
text *commandText = PG_GETARG_TEXT_P(0);
|
||||||
|
@ -415,8 +424,8 @@ Datum citus_internal_database_command(PG_FUNCTION_ARGS)
|
||||||
UnmarkObjectDistributed(&dbAddress);
|
UnmarkObjectDistributed(&dbAddress);
|
||||||
}
|
}
|
||||||
|
|
||||||
// /* remove database from database shards */
|
/* / * remove database from database shards * / */
|
||||||
// DeleteDatabaseShardByDatabaseIdLocally(databaseOid);
|
/* DeleteDatabaseShardByDatabaseIdLocally(databaseOid); */
|
||||||
|
|
||||||
DropDatabase(NULL, (DropdbStmt *) parseTree);
|
DropDatabase(NULL, (DropdbStmt *) parseTree);
|
||||||
}
|
}
|
||||||
|
@ -431,6 +440,7 @@ Datum citus_internal_database_command(PG_FUNCTION_ARGS)
|
||||||
PG_RETURN_VOID();
|
PG_RETURN_VOID();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
List *
|
List *
|
||||||
PreprocessDropDatabaseStmt(Node *node, const char *queryString,
|
PreprocessDropDatabaseStmt(Node *node, const char *queryString,
|
||||||
ProcessUtilityContext processUtilityContext)
|
ProcessUtilityContext processUtilityContext)
|
||||||
|
@ -457,7 +467,8 @@ PreprocessDropDatabaseStmt(Node *node, const char *queryString,
|
||||||
return NIL;
|
return NIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
List *workerNodes = TargetWorkerSetNodeList(NON_COORDINATOR_METADATA_NODES, RowShareLock);
|
List *workerNodes = TargetWorkerSetNodeList(NON_COORDINATOR_METADATA_NODES,
|
||||||
|
RowShareLock);
|
||||||
if (list_length(workerNodes) == 0)
|
if (list_length(workerNodes) == 0)
|
||||||
{
|
{
|
||||||
return NIL;
|
return NIL;
|
||||||
|
|
|
@ -1355,6 +1355,7 @@ GetDistributeObjectOps(Node *node)
|
||||||
{
|
{
|
||||||
return &Database_Alter;
|
return &Database_Alter;
|
||||||
}
|
}
|
||||||
|
|
||||||
case T_CreatedbStmt:
|
case T_CreatedbStmt:
|
||||||
{
|
{
|
||||||
return &Database_Create;
|
return &Database_Create;
|
||||||
|
|
|
@ -44,6 +44,7 @@ DeparseAlterDatabaseOwnerStmt(Node *node)
|
||||||
return str.data;
|
return str.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
AppendAlterDatabaseOwnerStmt(StringInfo buf, AlterOwnerStmt *stmt)
|
AppendAlterDatabaseOwnerStmt(StringInfo buf, AlterOwnerStmt *stmt)
|
||||||
{
|
{
|
||||||
|
@ -55,6 +56,7 @@ AppendAlterDatabaseOwnerStmt(StringInfo buf, AlterOwnerStmt *stmt)
|
||||||
RoleSpecString(stmt->newowner, true));
|
RoleSpecString(stmt->newowner, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
AppendGrantDatabases(StringInfo buf, GrantStmt *stmt)
|
AppendGrantDatabases(StringInfo buf, GrantStmt *stmt)
|
||||||
{
|
{
|
||||||
|
@ -72,6 +74,7 @@ AppendGrantDatabases(StringInfo buf, GrantStmt *stmt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
AppendGrantOnDatabaseStmt(StringInfo buf, GrantStmt *stmt)
|
AppendGrantOnDatabaseStmt(StringInfo buf, GrantStmt *stmt)
|
||||||
{
|
{
|
||||||
|
@ -84,12 +87,14 @@ AppendGrantOnDatabaseStmt(StringInfo buf, GrantStmt *stmt)
|
||||||
AppendGrantSharedSuffix(buf, stmt);
|
AppendGrantSharedSuffix(buf, stmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
AppendDefElemConnLimit(StringInfo buf, DefElem *def)
|
AppendDefElemConnLimit(StringInfo buf, DefElem *def)
|
||||||
{
|
{
|
||||||
appendStringInfo(buf, " CONNECTION LIMIT %ld", (long int) defGetNumeric(def));
|
appendStringInfo(buf, " CONNECTION LIMIT %ld", (long int) defGetNumeric(def));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
AppendAlterDatabaseStmt(StringInfo buf, AlterDatabaseStmt *stmt)
|
AppendAlterDatabaseStmt(StringInfo buf, AlterDatabaseStmt *stmt)
|
||||||
{
|
{
|
||||||
|
@ -128,6 +133,7 @@ AppendAlterDatabaseStmt(StringInfo buf, AlterDatabaseStmt *stmt)
|
||||||
appendStringInfo(buf, ";");
|
appendStringInfo(buf, ";");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
DeparseGrantOnDatabaseStmt(Node *node)
|
DeparseGrantOnDatabaseStmt(Node *node)
|
||||||
{
|
{
|
||||||
|
@ -142,6 +148,7 @@ DeparseGrantOnDatabaseStmt(Node *node)
|
||||||
return str.data;
|
return str.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
DeparseAlterDatabaseStmt(Node *node)
|
DeparseAlterDatabaseStmt(Node *node)
|
||||||
{
|
{
|
||||||
|
@ -155,6 +162,7 @@ DeparseAlterDatabaseStmt(Node *node)
|
||||||
return str.data;
|
return str.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if PG_VERSION_NUM >= PG_VERSION_15
|
#if PG_VERSION_NUM >= PG_VERSION_15
|
||||||
char *
|
char *
|
||||||
DeparseAlterDatabaseRefreshCollStmt(Node *node)
|
DeparseAlterDatabaseRefreshCollStmt(Node *node)
|
||||||
|
@ -171,6 +179,7 @@ DeparseAlterDatabaseRefreshCollStmt(Node *node)
|
||||||
return str.data;
|
return str.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -183,6 +192,7 @@ AppendAlterDatabaseSetStmt(StringInfo buf, AlterDatabaseSetStmt *stmt)
|
||||||
AppendVariableSet(buf, varSetStmt);
|
AppendVariableSet(buf, varSetStmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
DeparseAlterDatabaseSetStmt(Node *node)
|
DeparseAlterDatabaseSetStmt(Node *node)
|
||||||
{
|
{
|
||||||
|
@ -196,6 +206,7 @@ DeparseAlterDatabaseSetStmt(Node *node)
|
||||||
return str.data;
|
return str.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
AppendCreatedbStmt(StringInfo buf, CreatedbStmt *stmt)
|
AppendCreatedbStmt(StringInfo buf, CreatedbStmt *stmt)
|
||||||
{
|
{
|
||||||
|
@ -325,6 +336,7 @@ AppendCreatedbStmt(StringInfo buf, CreatedbStmt *stmt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
DeparseCreateDatabaseStmt(Node *node)
|
DeparseCreateDatabaseStmt(Node *node)
|
||||||
{
|
{
|
||||||
|
@ -337,6 +349,7 @@ DeparseCreateDatabaseStmt(Node *node)
|
||||||
return str.data;
|
return str.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
AppendDropDatabaseStmt(StringInfo buf, DropdbStmt *stmt)
|
AppendDropDatabaseStmt(StringInfo buf, DropdbStmt *stmt)
|
||||||
{
|
{
|
||||||
|
@ -361,6 +374,7 @@ AppendDropDatabaseStmt(StringInfo buf, DropdbStmt *stmt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
DeparseDropDatabaseStmt(Node *node)
|
DeparseDropDatabaseStmt(Node *node)
|
||||||
{
|
{
|
||||||
|
@ -372,6 +386,3 @@ DeparseDropDatabaseStmt(Node *node)
|
||||||
|
|
||||||
return str.data;
|
return str.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2769,8 +2769,6 @@ DistRebalanceStrategyRelationId(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* return oid of pg_dist_object relation */
|
/* return oid of pg_dist_object relation */
|
||||||
Oid
|
Oid
|
||||||
DistObjectRelationId(void)
|
DistObjectRelationId(void)
|
||||||
|
@ -5403,8 +5401,6 @@ DeformedDistShardTupleToShardInterval(Datum *datumArray, bool *isNullArray,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* CachedRelationLookup performs a cached lookup for the relation
|
* CachedRelationLookup performs a cached lookup for the relation
|
||||||
* relationName, with the result cached in *cachedOid.
|
* relationName, with the result cached in *cachedOid.
|
||||||
|
|
|
@ -185,8 +185,10 @@ extern List *PostprocessAlterDistributedObjectStmt(Node *stmt, const char *query
|
||||||
extern List * PreprocessDropDistributedObjectStmt(Node *node, const char *queryString,
|
extern List * PreprocessDropDistributedObjectStmt(Node *node, const char *queryString,
|
||||||
ProcessUtilityContext
|
ProcessUtilityContext
|
||||||
processUtilityContext);
|
processUtilityContext);
|
||||||
extern List *DropTextSearchConfigObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
extern List * DropTextSearchConfigObjectAddress(Node *node, bool missing_ok, bool
|
||||||
extern List *DropTextSearchDictObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
isPostprocess);
|
||||||
|
extern List * DropTextSearchDictObjectAddress(Node *node, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
|
|
||||||
/* index.c */
|
/* index.c */
|
||||||
typedef void (*PGIndexProcessor)(Form_pg_index, List **, int);
|
typedef void (*PGIndexProcessor)(Form_pg_index, List **, int);
|
||||||
|
@ -197,15 +199,19 @@ extern bool CallDistributedProcedureRemotely(CallStmt *callStmt, DestReceiver *d
|
||||||
/* collation.c - forward declarations */
|
/* collation.c - forward declarations */
|
||||||
extern char * CreateCollationDDL(Oid collationId);
|
extern char * CreateCollationDDL(Oid collationId);
|
||||||
extern List * CreateCollationDDLsIdempotent(Oid collationId);
|
extern List * CreateCollationDDLsIdempotent(Oid collationId);
|
||||||
extern List *AlterCollationOwnerObjectAddress(Node *stmt, bool missing_ok, bool isPostprocess);
|
extern List * AlterCollationOwnerObjectAddress(Node *stmt, bool missing_ok, bool
|
||||||
extern List *RenameCollationStmtObjectAddress(Node *stmt, bool missing_ok, bool isPostprocess);
|
isPostprocess);
|
||||||
|
extern List * RenameCollationStmtObjectAddress(Node *stmt, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * AlterCollationSchemaStmtObjectAddress(Node *stmt,
|
extern List * AlterCollationSchemaStmtObjectAddress(Node *stmt,
|
||||||
bool missing_ok, bool isPostprocess);
|
bool missing_ok, bool isPostprocess);
|
||||||
extern char * GenerateBackupNameForCollationCollision(const ObjectAddress *address);
|
extern char * GenerateBackupNameForCollationCollision(const ObjectAddress *address);
|
||||||
extern List *DefineCollationStmtObjectAddress(Node *stmt, bool missing_ok, bool isPostprocess);
|
extern List * DefineCollationStmtObjectAddress(Node *stmt, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
|
|
||||||
/* database.c - forward declarations */
|
/* database.c - forward declarations */
|
||||||
extern List *AlterDatabaseOwnerObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
extern List * AlterDatabaseOwnerObjectAddress(Node *node, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * DatabaseOwnerDDLCommands(const ObjectAddress *address);
|
extern List * DatabaseOwnerDDLCommands(const ObjectAddress *address);
|
||||||
|
|
||||||
extern List * PreprocessGrantOnDatabaseStmt(Node *node, const char *queryString,
|
extern List * PreprocessGrantOnDatabaseStmt(Node *node, const char *queryString,
|
||||||
|
@ -226,12 +232,17 @@ extern List *PreprocessDropDatabaseStmt(Node *node, const char *queryString,
|
||||||
ProcessUtilityContext processUtilityContext);
|
ProcessUtilityContext processUtilityContext);
|
||||||
|
|
||||||
/* domain.c - forward declarations */
|
/* domain.c - forward declarations */
|
||||||
extern List *CreateDomainStmtObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
extern List * CreateDomainStmtObjectAddress(Node *node, bool missing_ok, bool
|
||||||
extern List *AlterDomainStmtObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
isPostprocess);
|
||||||
|
extern List * AlterDomainStmtObjectAddress(Node *node, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * DomainRenameConstraintStmtObjectAddress(Node *node,
|
extern List * DomainRenameConstraintStmtObjectAddress(Node *node,
|
||||||
bool missing_ok, bool isPostprocess);
|
bool missing_ok, bool
|
||||||
extern List *AlterDomainOwnerStmtObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
isPostprocess);
|
||||||
extern List *RenameDomainStmtObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
extern List * AlterDomainOwnerStmtObjectAddress(Node *node, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
|
extern List * RenameDomainStmtObjectAddress(Node *node, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern CreateDomainStmt * RecreateDomainStmt(Oid domainOid);
|
extern CreateDomainStmt * RecreateDomainStmt(Oid domainOid);
|
||||||
extern Oid get_constraint_typid(Oid conoid);
|
extern Oid get_constraint_typid(Oid conoid);
|
||||||
|
|
||||||
|
@ -322,10 +333,14 @@ extern Acl *GetPrivilegesForFDW(Oid FDWOid);
|
||||||
extern List * PreprocessGrantOnForeignServerStmt(Node *node, const char *queryString,
|
extern List * PreprocessGrantOnForeignServerStmt(Node *node, const char *queryString,
|
||||||
ProcessUtilityContext
|
ProcessUtilityContext
|
||||||
processUtilityContext);
|
processUtilityContext);
|
||||||
extern List *CreateForeignServerStmtObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
extern List * CreateForeignServerStmtObjectAddress(Node *node, bool missing_ok, bool
|
||||||
extern List *AlterForeignServerStmtObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
isPostprocess);
|
||||||
extern List *RenameForeignServerStmtObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
extern List * AlterForeignServerStmtObjectAddress(Node *node, bool missing_ok, bool
|
||||||
extern List *AlterForeignServerOwnerStmtObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
isPostprocess);
|
||||||
|
extern List * RenameForeignServerStmtObjectAddress(Node *node, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
|
extern List * AlterForeignServerOwnerStmtObjectAddress(Node *node, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * GetForeignServerCreateDDLCommand(Oid serverId);
|
extern List * GetForeignServerCreateDDLCommand(Oid serverId);
|
||||||
|
|
||||||
/* foreign_table.c - forward declarations */
|
/* foreign_table.c - forward declarations */
|
||||||
|
@ -390,11 +405,13 @@ extern List *PostprocessIndexStmt(Node *node,
|
||||||
const char *queryString);
|
const char *queryString);
|
||||||
extern void ErrorIfUnsupportedAlterIndexStmt(AlterTableStmt *alterTableStatement);
|
extern void ErrorIfUnsupportedAlterIndexStmt(AlterTableStmt *alterTableStatement);
|
||||||
extern void MarkIndexValid(IndexStmt *indexStmt);
|
extern void MarkIndexValid(IndexStmt *indexStmt);
|
||||||
extern List *ExecuteFunctionOnEachTableIndex(Oid relationId, PGIndexProcessor pgIndexProcessor, int flags);
|
extern List * ExecuteFunctionOnEachTableIndex(Oid relationId, PGIndexProcessor
|
||||||
|
pgIndexProcessor, int flags);
|
||||||
extern bool IsReindexWithParam_compat(ReindexStmt *stmt, char *paramName);
|
extern bool IsReindexWithParam_compat(ReindexStmt *stmt, char *paramName);
|
||||||
|
|
||||||
/* objectaddress.c - forward declarations */
|
/* objectaddress.c - forward declarations */
|
||||||
extern List *CreateExtensionStmtObjectAddress(Node *stmt, bool missing_ok, bool isPostprocess);
|
extern List * CreateExtensionStmtObjectAddress(Node *stmt, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
|
|
||||||
/* owned.c - forward declarations */
|
/* owned.c - forward declarations */
|
||||||
extern List * PreprocessDropOwnedStmt(Node *node, const char *queryString,
|
extern List * PreprocessDropOwnedStmt(Node *node, const char *queryString,
|
||||||
|
@ -414,8 +431,10 @@ extern void CreatePolicyEventExtendNames(CreatePolicyStmt *stmt, const char *sch
|
||||||
uint64 shardId);
|
uint64 shardId);
|
||||||
extern void AlterPolicyEventExtendNames(AlterPolicyStmt *stmt, const char *schemaName,
|
extern void AlterPolicyEventExtendNames(AlterPolicyStmt *stmt, const char *schemaName,
|
||||||
uint64 shardId);
|
uint64 shardId);
|
||||||
extern void RenamePolicyEventExtendNames(RenameStmt *stmt, const char *schemaName, uint64 shardId);
|
extern void RenamePolicyEventExtendNames(RenameStmt *stmt, const char *schemaName, uint64
|
||||||
extern void DropPolicyEventExtendNames(DropStmt *stmt, const char *schemaName, uint64 shardId);
|
shardId);
|
||||||
|
extern void DropPolicyEventExtendNames(DropStmt *stmt, const char *schemaName, uint64
|
||||||
|
shardId);
|
||||||
|
|
||||||
extern void AddRangeTableEntryToQueryCompat(ParseState *parseState, Relation relation);
|
extern void AddRangeTableEntryToQueryCompat(ParseState *parseState, Relation relation);
|
||||||
|
|
||||||
|
@ -465,7 +484,8 @@ extern List *PreprocessGrantRoleStmt(Node *stmt, const char *queryString,
|
||||||
ProcessUtilityContext processUtilityContext);
|
ProcessUtilityContext processUtilityContext);
|
||||||
extern List * PostprocessGrantRoleStmt(Node *stmt, const char *queryString);
|
extern List * PostprocessGrantRoleStmt(Node *stmt, const char *queryString);
|
||||||
extern List * GenerateCreateOrAlterRoleCommand(Oid roleOid);
|
extern List * GenerateCreateOrAlterRoleCommand(Oid roleOid);
|
||||||
extern List *CreateRoleStmtObjectAddress(Node *stmt, bool missing_ok, bool isPostprocess);
|
extern List * CreateRoleStmtObjectAddress(Node *stmt, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
|
|
||||||
extern List * RenameRoleStmtObjectAddress(Node *stmt, bool missing_ok, bool
|
extern List * RenameRoleStmtObjectAddress(Node *stmt, bool missing_ok, bool
|
||||||
isPostprocess);
|
isPostprocess);
|
||||||
|
@ -482,10 +502,12 @@ extern List *PreprocessAlterObjectSchemaStmt(Node *alterObjectSchemaStmt,
|
||||||
const char *alterObjectSchemaCommand);
|
const char *alterObjectSchemaCommand);
|
||||||
extern List * PreprocessGrantOnSchemaStmt(Node *node, const char *queryString,
|
extern List * PreprocessGrantOnSchemaStmt(Node *node, const char *queryString,
|
||||||
ProcessUtilityContext processUtilityContext);
|
ProcessUtilityContext processUtilityContext);
|
||||||
extern List *CreateSchemaStmtObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
extern List * CreateSchemaStmtObjectAddress(Node *node, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * AlterSchemaOwnerStmtObjectAddress(Node *node, bool missing_ok,
|
extern List * AlterSchemaOwnerStmtObjectAddress(Node *node, bool missing_ok,
|
||||||
bool isPostprocess);
|
bool isPostprocess);
|
||||||
extern List *AlterSchemaRenameStmtObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
extern List * AlterSchemaRenameStmtObjectAddress(Node *node, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
|
|
||||||
/* sequence.c - forward declarations */
|
/* sequence.c - forward declarations */
|
||||||
extern List * PreprocessAlterSequenceStmt(Node *node, const char *queryString,
|
extern List * PreprocessAlterSequenceStmt(Node *node, const char *queryString,
|
||||||
|
@ -506,19 +528,25 @@ extern List *PreprocessSequenceAlterTableStmt(Node *node, const char *queryStrin
|
||||||
#endif
|
#endif
|
||||||
extern List * PreprocessDropSequenceStmt(Node *node, const char *queryString,
|
extern List * PreprocessDropSequenceStmt(Node *node, const char *queryString,
|
||||||
ProcessUtilityContext processUtilityContext);
|
ProcessUtilityContext processUtilityContext);
|
||||||
extern List *SequenceDropStmtObjectAddress(Node *stmt, bool missing_ok, bool isPostprocess);
|
extern List * SequenceDropStmtObjectAddress(Node *stmt, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * PreprocessRenameSequenceStmt(Node *node, const char *queryString,
|
extern List * PreprocessRenameSequenceStmt(Node *node, const char *queryString,
|
||||||
ProcessUtilityContext processUtilityContext);
|
ProcessUtilityContext processUtilityContext);
|
||||||
extern List * PreprocessGrantOnSequenceStmt(Node *node, const char *queryString,
|
extern List * PreprocessGrantOnSequenceStmt(Node *node, const char *queryString,
|
||||||
ProcessUtilityContext processUtilityContext);
|
ProcessUtilityContext processUtilityContext);
|
||||||
extern List * PostprocessGrantOnSequenceStmt(Node *node, const char *queryString);
|
extern List * PostprocessGrantOnSequenceStmt(Node *node, const char *queryString);
|
||||||
extern List *AlterSequenceStmtObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
extern List * AlterSequenceStmtObjectAddress(Node *node, bool missing_ok, bool
|
||||||
extern List *AlterSequenceSchemaStmtObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
isPostprocess);
|
||||||
extern List *AlterSequenceOwnerStmtObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
extern List * AlterSequenceSchemaStmtObjectAddress(Node *node, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
|
extern List * AlterSequenceOwnerStmtObjectAddress(Node *node, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
#if (PG_VERSION_NUM >= PG_VERSION_15)
|
#if (PG_VERSION_NUM >= PG_VERSION_15)
|
||||||
extern List *AlterSequencePersistenceStmtObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
extern List * AlterSequencePersistenceStmtObjectAddress(Node *node, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
#endif
|
#endif
|
||||||
extern List *RenameSequenceStmtObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
extern List * RenameSequenceStmtObjectAddress(Node *node, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern void ErrorIfUnsupportedSeqStmt(CreateSeqStmt *createSeqStmt);
|
extern void ErrorIfUnsupportedSeqStmt(CreateSeqStmt *createSeqStmt);
|
||||||
extern void ErrorIfDistributedAlterSeqOwnedBy(AlterSeqStmt *alterSeqStmt);
|
extern void ErrorIfDistributedAlterSeqOwnedBy(AlterSeqStmt *alterSeqStmt);
|
||||||
extern char * GenerateBackupNameForSequenceCollision(const ObjectAddress *address);
|
extern char * GenerateBackupNameForSequenceCollision(const ObjectAddress *address);
|
||||||
|
@ -529,10 +557,12 @@ extern void RenameExistingSequenceWithDifferentTypeIfExists(RangeVar *sequence,
|
||||||
extern List * PreprocessCreateStatisticsStmt(Node *node, const char *queryString,
|
extern List * PreprocessCreateStatisticsStmt(Node *node, const char *queryString,
|
||||||
ProcessUtilityContext processUtilityContext);
|
ProcessUtilityContext processUtilityContext);
|
||||||
extern List * PostprocessCreateStatisticsStmt(Node *node, const char *queryString);
|
extern List * PostprocessCreateStatisticsStmt(Node *node, const char *queryString);
|
||||||
extern List *CreateStatisticsStmtObjectAddress(Node *node, bool missingOk, bool isPostprocess);
|
extern List * CreateStatisticsStmtObjectAddress(Node *node, bool missingOk, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * PreprocessDropStatisticsStmt(Node *node, const char *queryString,
|
extern List * PreprocessDropStatisticsStmt(Node *node, const char *queryString,
|
||||||
ProcessUtilityContext processUtilityContext);
|
ProcessUtilityContext processUtilityContext);
|
||||||
extern List *DropStatisticsObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
extern List * DropStatisticsObjectAddress(Node *node, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * PreprocessAlterStatisticsRenameStmt(Node *node, const char *queryString,
|
extern List * PreprocessAlterStatisticsRenameStmt(Node *node, const char *queryString,
|
||||||
ProcessUtilityContext
|
ProcessUtilityContext
|
||||||
processUtilityContext);
|
processUtilityContext);
|
||||||
|
@ -540,7 +570,8 @@ extern List *PreprocessAlterStatisticsSchemaStmt(Node *node, const char *querySt
|
||||||
ProcessUtilityContext
|
ProcessUtilityContext
|
||||||
processUtilityContext);
|
processUtilityContext);
|
||||||
extern List * PostprocessAlterStatisticsSchemaStmt(Node *node, const char *queryString);
|
extern List * PostprocessAlterStatisticsSchemaStmt(Node *node, const char *queryString);
|
||||||
extern List *AlterStatisticsSchemaStmtObjectAddress(Node *node, bool missingOk, bool isPostprocess);
|
extern List * AlterStatisticsSchemaStmtObjectAddress(Node *node, bool missingOk, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * PreprocessAlterStatisticsStmt(Node *node, const char *queryString,
|
extern List * PreprocessAlterStatisticsStmt(Node *node, const char *queryString,
|
||||||
ProcessUtilityContext processUtilityContext);
|
ProcessUtilityContext processUtilityContext);
|
||||||
extern List * PreprocessAlterStatisticsOwnerStmt(Node *node, const char *queryString,
|
extern List * PreprocessAlterStatisticsOwnerStmt(Node *node, const char *queryString,
|
||||||
|
@ -603,27 +634,36 @@ extern List *GetCreateTextSearchDictionaryStatements(const ObjectAddress *addres
|
||||||
extern List * CreateTextSearchConfigDDLCommandsIdempotent(const ObjectAddress *address);
|
extern List * CreateTextSearchConfigDDLCommandsIdempotent(const ObjectAddress *address);
|
||||||
extern List * CreateTextSearchDictDDLCommandsIdempotent(const ObjectAddress *address);
|
extern List * CreateTextSearchDictDDLCommandsIdempotent(const ObjectAddress *address);
|
||||||
extern List * CreateTextSearchConfigurationObjectAddress(Node *node,
|
extern List * CreateTextSearchConfigurationObjectAddress(Node *node,
|
||||||
bool missing_ok, bool isPostprocess);
|
bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * CreateTextSearchDictObjectAddress(Node *node,
|
extern List * CreateTextSearchDictObjectAddress(Node *node,
|
||||||
bool missing_ok, bool isPostprocess);
|
bool missing_ok, bool isPostprocess);
|
||||||
extern List * RenameTextSearchConfigurationStmtObjectAddress(Node *node,
|
extern List * RenameTextSearchConfigurationStmtObjectAddress(Node *node,
|
||||||
bool missing_ok, bool isPostprocess);
|
bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * RenameTextSearchDictionaryStmtObjectAddress(Node *node,
|
extern List * RenameTextSearchDictionaryStmtObjectAddress(Node *node,
|
||||||
bool missing_ok, bool isPostprocess);
|
bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * AlterTextSearchConfigurationStmtObjectAddress(Node *node,
|
extern List * AlterTextSearchConfigurationStmtObjectAddress(Node *node,
|
||||||
bool missing_ok, bool isPostprocess);
|
bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * AlterTextSearchDictionaryStmtObjectAddress(Node *node,
|
extern List * AlterTextSearchDictionaryStmtObjectAddress(Node *node,
|
||||||
bool missing_ok, bool isPostprocess);
|
bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * AlterTextSearchConfigurationSchemaStmtObjectAddress(Node *node,
|
extern List * AlterTextSearchConfigurationSchemaStmtObjectAddress(Node *node,
|
||||||
bool missing_ok, bool isPostprocess);
|
bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * AlterTextSearchDictionarySchemaStmtObjectAddress(Node *node,
|
extern List * AlterTextSearchDictionarySchemaStmtObjectAddress(Node *node,
|
||||||
bool missing_ok, bool isPostprocess);
|
bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * TextSearchConfigurationCommentObjectAddress(Node *node,
|
extern List * TextSearchConfigurationCommentObjectAddress(Node *node,
|
||||||
bool missing_ok, bool isPostprocess);
|
bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * TextSearchDictCommentObjectAddress(Node *node,
|
extern List * TextSearchDictCommentObjectAddress(Node *node,
|
||||||
bool missing_ok, bool isPostprocess);
|
bool missing_ok, bool isPostprocess);
|
||||||
extern List * AlterTextSearchConfigurationOwnerObjectAddress(Node *node,
|
extern List * AlterTextSearchConfigurationOwnerObjectAddress(Node *node,
|
||||||
bool missing_ok, bool isPostprocess);
|
bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * AlterTextSearchDictOwnerObjectAddress(Node *node,
|
extern List * AlterTextSearchDictOwnerObjectAddress(Node *node,
|
||||||
bool missing_ok, bool isPostprocess);
|
bool missing_ok, bool isPostprocess);
|
||||||
extern char * GenerateBackupNameForTextSearchConfiguration(const ObjectAddress *address);
|
extern char * GenerateBackupNameForTextSearchConfiguration(const ObjectAddress *address);
|
||||||
|
@ -638,16 +678,20 @@ extern List *PreprocessRenameTypeAttributeStmt(Node *stmt, const char *queryStri
|
||||||
ProcessUtilityContext
|
ProcessUtilityContext
|
||||||
processUtilityContext);
|
processUtilityContext);
|
||||||
extern Node * CreateTypeStmtByObjectAddress(const ObjectAddress *address);
|
extern Node * CreateTypeStmtByObjectAddress(const ObjectAddress *address);
|
||||||
extern List *CompositeTypeStmtObjectAddress(Node *stmt, bool missing_ok, bool isPostprocess);
|
extern List * CompositeTypeStmtObjectAddress(Node *stmt, bool missing_ok, bool
|
||||||
extern List *CreateEnumStmtObjectAddress(Node *stmt, bool missing_ok, bool isPostprocess);
|
isPostprocess);
|
||||||
|
extern List * CreateEnumStmtObjectAddress(Node *stmt, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * AlterTypeStmtObjectAddress(Node *stmt, bool missing_ok, bool isPostprocess);
|
extern List * AlterTypeStmtObjectAddress(Node *stmt, bool missing_ok, bool isPostprocess);
|
||||||
extern List * AlterEnumStmtObjectAddress(Node *stmt, bool missing_ok, bool isPostprocess);
|
extern List * AlterEnumStmtObjectAddress(Node *stmt, bool missing_ok, bool isPostprocess);
|
||||||
extern List *RenameTypeStmtObjectAddress(Node *stmt, bool missing_ok, bool isPostprocess);
|
extern List * RenameTypeStmtObjectAddress(Node *stmt, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * AlterTypeSchemaStmtObjectAddress(Node *stmt,
|
extern List * AlterTypeSchemaStmtObjectAddress(Node *stmt,
|
||||||
bool missing_ok, bool isPostprocess);
|
bool missing_ok, bool isPostprocess);
|
||||||
extern List * RenameTypeAttributeStmtObjectAddress(Node *stmt,
|
extern List * RenameTypeAttributeStmtObjectAddress(Node *stmt,
|
||||||
bool missing_ok);
|
bool missing_ok);
|
||||||
extern List *AlterTypeOwnerObjectAddress(Node *stmt, bool missing_ok, bool isPostprocess);
|
extern List * AlterTypeOwnerObjectAddress(Node *stmt, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * CreateTypeDDLCommandsIdempotent(const ObjectAddress *typeAddress);
|
extern List * CreateTypeDDLCommandsIdempotent(const ObjectAddress *typeAddress);
|
||||||
extern char * GenerateBackupNameForTypeCollision(const ObjectAddress *address);
|
extern char * GenerateBackupNameForTypeCollision(const ObjectAddress *address);
|
||||||
|
|
||||||
|
@ -685,11 +729,13 @@ extern List *PreprocessAlterViewStmt(Node *node, const char *queryString,
|
||||||
extern List * PostprocessAlterViewStmt(Node *node, const char *queryString);
|
extern List * PostprocessAlterViewStmt(Node *node, const char *queryString);
|
||||||
extern List * PreprocessRenameViewStmt(Node *node, const char *queryString,
|
extern List * PreprocessRenameViewStmt(Node *node, const char *queryString,
|
||||||
ProcessUtilityContext processUtilityContext);
|
ProcessUtilityContext processUtilityContext);
|
||||||
extern List *RenameViewStmtObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
extern List * RenameViewStmtObjectAddress(Node *node, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern List * PreprocessAlterViewSchemaStmt(Node *node, const char *queryString,
|
extern List * PreprocessAlterViewSchemaStmt(Node *node, const char *queryString,
|
||||||
ProcessUtilityContext processUtilityContext);
|
ProcessUtilityContext processUtilityContext);
|
||||||
extern List * PostprocessAlterViewSchemaStmt(Node *node, const char *queryString);
|
extern List * PostprocessAlterViewSchemaStmt(Node *node, const char *queryString);
|
||||||
extern List *AlterViewSchemaStmtObjectAddress(Node *node, bool missing_ok, bool isPostprocess);
|
extern List * AlterViewSchemaStmtObjectAddress(Node *node, bool missing_ok, bool
|
||||||
|
isPostprocess);
|
||||||
extern bool IsViewRenameStmt(RenameStmt *renameStmt);
|
extern bool IsViewRenameStmt(RenameStmt *renameStmt);
|
||||||
|
|
||||||
/* trigger.c - forward declarations */
|
/* trigger.c - forward declarations */
|
||||||
|
@ -697,7 +743,8 @@ extern List *GetExplicitTriggerCommandList(Oid relationId);
|
||||||
extern HeapTuple GetTriggerTupleById(Oid triggerId, bool missingOk);
|
extern HeapTuple GetTriggerTupleById(Oid triggerId, bool missingOk);
|
||||||
extern List * GetExplicitTriggerIdList(Oid relationId);
|
extern List * GetExplicitTriggerIdList(Oid relationId);
|
||||||
extern List * PostprocessCreateTriggerStmt(Node *node, const char *queryString);
|
extern List * PostprocessCreateTriggerStmt(Node *node, const char *queryString);
|
||||||
extern List *CreateTriggerStmtObjectAddress(Node *node, bool missingOk, bool isPostprocess);
|
extern List * CreateTriggerStmtObjectAddress(Node *node, bool missingOk, bool
|
||||||
|
isPostprocess);
|
||||||
extern void CreateTriggerEventExtendNames(CreateTrigStmt *createTriggerStmt,
|
extern void CreateTriggerEventExtendNames(CreateTrigStmt *createTriggerStmt,
|
||||||
char *schemaName, uint64 shardId);
|
char *schemaName, uint64 shardId);
|
||||||
extern List * PreprocessAlterTriggerRenameStmt(Node *node, const char *queryString,
|
extern List * PreprocessAlterTriggerRenameStmt(Node *node, const char *queryString,
|
||||||
|
|
|
@ -231,7 +231,6 @@ extern char * DeparseCreateDatabaseStmt(Node *node);
|
||||||
extern char * DeparseDropDatabaseStmt(Node *node);
|
extern char * DeparseDropDatabaseStmt(Node *node);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* forward declaration for deparse_publication_stmts.c */
|
/* forward declaration for deparse_publication_stmts.c */
|
||||||
extern char * DeparseCreatePublicationStmt(Node *stmt);
|
extern char * DeparseCreatePublicationStmt(Node *stmt);
|
||||||
extern char * DeparseCreatePublicationStmtExtended(Node *node,
|
extern char * DeparseCreatePublicationStmtExtended(Node *node,
|
||||||
|
|
Loading…
Reference in New Issue