transformPartitionCmd(CreateStmtContext *cxt, PartitionCmd *cmd)
{
	Relation	parentRel = cxt->rel;

	/* the table must be partitioned */
	if (parentRel->rd_rel->relkind != RELKIND_PARTITIONED_TABLE)
		ereport(ERROR,
				(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
				 errmsg("\"%s\" is not partitioned",
						RelationGetRelationName(parentRel))));

	/* transform the partition bound, if any */
	Assert(RelationGetPartitionKey(parentRel) != NULL);
	if (cmd->bound != NULL)
		cxt->partbound = transformPartitionBound(cxt->pstate, parentRel,
												 cmd->bound);
}
transformPartitionCmd(CreateStmtContext *cxt, PartitionCmd *cmd)
{
	Relation	parentRel = cxt->rel;

	 
	if (parentRel->rd_rel->relkind != RELKIND_PARTITIONED_TABLE)
		ereport(ERROR,
				(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
				 errmsg("\"%s\" is not partitioned",
						RelationGetRelationName(parentRel))));

	 
	Assert(RelationGetPartitionKey(parentRel) != NULL);
	if (cmd->bound != NULL)
		cxt->partbound = transformPartitionBound(cxt->pstate, parentRel,
												 cmd->bound);
}