| 1153 | } |
| 1154 | |
| 1155 | static List * |
| 1156 | generateDefaultPartition(ParseState *pstate, |
| 1157 | Relation parentrel, |
| 1158 | GpPartDefElem *elem, |
| 1159 | PartitionSpec *subPart, |
| 1160 | partname_comp *partnamecomp, |
| 1161 | CreateStmtOrigin origin) |
| 1162 | { |
| 1163 | PartitionBoundSpec *boundspec; |
| 1164 | CreateStmt *childstmt; |
| 1165 | |
| 1166 | boundspec = makeNode(PartitionBoundSpec); |
| 1167 | boundspec->is_default = true; |
| 1168 | boundspec->location = -1; |
| 1169 | |
| 1170 | /* default partition always needs name to be specified */ |
| 1171 | Assert(elem->partName != NULL); |
| 1172 | childstmt = makePartitionCreateStmt(parentrel, elem->partName, boundspec, subPart, |
| 1173 | elem, partnamecomp, origin); |
| 1174 | return list_make1(childstmt); |
| 1175 | } |
| 1176 | |
| 1177 | static char * |
| 1178 | extract_tablename_from_options(List **options) |
no test coverage detected