Clean up a couple of bizarre code formatting choices in recent CREATE LIKE patch.
authorTom Lane <[email protected]>
Fri, 13 Nov 2009 23:49:23 +0000 (23:49 +0000)
committerTom Lane <[email protected]>
Fri, 13 Nov 2009 23:49:23 +0000 (23:49 +0000)
src/backend/parser/parse_utilcmd.c

index 29ff698676e0435d3b51c79c4de384458ee8e834..c71966d9d370832bbf9005b30e7de9ffc9e52e1e 100644 (file)
@@ -647,8 +647,9 @@ transformInhRelation(ParseState *pstate, CreateStmtContext *cxt,
 
        /* Likewise, copy comment if requested */
        if ((inhRelation->options & CREATE_TABLE_LIKE_COMMENTS) &&
-           (comment = GetComment(attribute->attrelid, RelationRelationId,
-           attribute->attnum)) != NULL)
+           (comment = GetComment(attribute->attrelid,
+                                 RelationRelationId,
+                                 attribute->attnum)) != NULL)
        {
            CommentStmt *stmt = makeNode(CommentStmt);
 
@@ -667,7 +668,8 @@ transformInhRelation(ParseState *pstate, CreateStmtContext *cxt,
     * Copy CHECK constraints if requested, being careful to adjust attribute
     * numbers
     */
-   if ((inhRelation->options & CREATE_TABLE_LIKE_CONSTRAINTS) && tupleDesc->constr)
+   if ((inhRelation->options & CREATE_TABLE_LIKE_CONSTRAINTS) &&
+       tupleDesc->constr)
    {
        AttrNumber *attmap = varattnos_map_schema(tupleDesc, cxt->columns);
        int         ccnum;
@@ -690,8 +692,10 @@ transformInhRelation(ParseState *pstate, CreateStmtContext *cxt,
 
            /* Copy comment on constraint */
            if ((inhRelation->options & CREATE_TABLE_LIKE_COMMENTS) &&
-               (comment = GetComment(GetConstraintByName(RelationGetRelid(
-               relation), n->conname), ConstraintRelationId, 0)) != NULL)
+               (comment = GetComment(GetConstraintByName(RelationGetRelid(relation),
+                                                         n->conname),
+                                     ConstraintRelationId,
+                                     0)) != NULL)
            {
                CommentStmt *stmt = makeNode(CommentStmt);