Home
last modified time | relevance | path

Searched refs:alterTableCmd (Results 1 – 4 of 4) sorted by relevance

/dports/databases/pg_citus/citus-10.2.3/src/backend/distributed/deparser/
H A Ddeparse_type_stmts.c52 AlterTableCmd *alterTableCmd);
151 AppendAlterTypeCmd(buf, alterTableCmd); in AppendAlterTypeStmt()
161 switch (alterTableCmd->subtype) in AppendAlterTypeCmd()
165 AppendAlterTypeCmdAddColumn(buf, alterTableCmd); in AppendAlterTypeCmd()
171 AppendAlterTypeCmdDropColumn(buf, alterTableCmd); in AppendAlterTypeCmd()
193 Assert(alterTableCmd->subtype == AT_AddColumn); in AppendAlterTypeCmdAddColumn()
203 Assert(alterTableCmd->subtype == AT_DropColumn); in AppendAlterTypeCmdDropColumn()
206 if (alterTableCmd->behavior == DROP_CASCADE) in AppendAlterTypeCmdDropColumn()
216 Assert(alterTableCmd->subtype == AT_AlterColumnType); in AppendAlterTypeCmdAlterColumnType()
218 alterTableCmd->name)); in AppendAlterTypeCmdAlterColumnType()
[all …]
H A Ddeparse_table_stmts.c23 static void AppendAlterTableCmd(StringInfo buf, AlterTableCmd *alterTableCmd);
24 static void AppendAlterTableCmdAddColumn(StringInfo buf, AlterTableCmd *alterTableCmd);
96 AlterTableCmd *alterTableCmd = castNode(AlterTableCmd, lfirst(cmdCell)); in AppendAlterTableStmt() local
97 AppendAlterTableCmd(buf, alterTableCmd); in AppendAlterTableStmt()
110 AppendAlterTableCmd(StringInfo buf, AlterTableCmd *alterTableCmd) in AppendAlterTableCmd() argument
112 switch (alterTableCmd->subtype) in AppendAlterTableCmd()
116 AppendAlterTableCmdAddColumn(buf, alterTableCmd); in AppendAlterTableCmd()
123 errdetail("sub command type: %d", alterTableCmd->subtype))); in AppendAlterTableCmd()
134 AppendAlterTableCmdAddColumn(StringInfo buf, AlterTableCmd *alterTableCmd) in AppendAlterTableCmdAddColumn() argument
136 Assert(alterTableCmd->subtype == AT_AddColumn); in AppendAlterTableCmdAddColumn()
[all …]
H A Ddeparse_sequence_stmts.c239 AlterTableCmd *alterTableCmd = castNode(AlterTableCmd, lfirst(cmdCell)); in AppendAlterSequenceOwnerStmt() local
240 switch (alterTableCmd->subtype) in AppendAlterSequenceOwnerStmt()
245 alterTableCmd->newowner)); in AppendAlterSequenceOwnerStmt()
258 alterTableCmd->subtype))); in AppendAlterSequenceOwnerStmt()
/dports/databases/pg_citus/citus-10.2.3/src/backend/distributed/commands/
H A Dtable.c81 static void ErrorIfCitusLocalTablePartitionCommand(AlterTableCmd *alterTableCmd,
83 static Oid GetPartitionCommandChildRelationId(AlterTableCmd *alterTableCmd,
2604 ErrorIfCitusLocalTablePartitionCommand(AlterTableCmd *alterTableCmd, Oid parentRelationId) in ErrorIfCitusLocalTablePartitionCommand() argument
2606 AlterTableType alterTableType = alterTableCmd->subtype; in ErrorIfCitusLocalTablePartitionCommand()
2613 Oid childRelationId = GetPartitionCommandChildRelationId(alterTableCmd, missingOK); in ErrorIfCitusLocalTablePartitionCommand()
2632 GetPartitionCommandChildRelationId(AlterTableCmd *alterTableCmd, bool missingOk) in GetPartitionCommandChildRelationId() argument
2634 AlterTableType alterTableType PG_USED_FOR_ASSERTS_ONLY = alterTableCmd->subtype; in GetPartitionCommandChildRelationId()
2637 PartitionCmd *partitionCommand = (PartitionCmd *) alterTableCmd->def; in GetPartitionCommandChildRelationId()