Some trivial adjustments in comments for struct RelationData.
authorTom Lane <[email protected]>
Sun, 10 Jan 2010 22:19:17 +0000 (22:19 +0000)
committerTom Lane <[email protected]>
Sun, 10 Jan 2010 22:19:17 +0000 (22:19 +0000)
src/include/utils/rel.h

index 23d121dcd8b7d223858d877b7abcf79aefc24774..dc4c9c7ad2f195fe089c9e120c494898f4df564a 100644 (file)
@@ -134,9 +134,6 @@ typedef struct RelationData
    bool        rd_isvalid;     /* relcache entry is valid */
    char        rd_indexvalid;  /* state of rd_indexlist: 0 = not valid, 1 =
                                 * valid, 2 = temporarily forced */
-   SubTransactionId rd_createSubid;    /* rel was created in current xact */
-   SubTransactionId rd_newRelfilenodeSubid;    /* new relfilenode assigned in
-                                                * current xact */
 
    /*
     * rd_createSubid is the ID of the highest subtransaction the rel has
@@ -147,6 +144,10 @@ typedef struct RelationData
     * subtransaction the relfilenode change has survived into, or zero if not
     * changed in the current transaction (or we have forgotten changing it).
     */
+   SubTransactionId rd_createSubid;    /* rel was created in current xact */
+   SubTransactionId rd_newRelfilenodeSubid;    /* new relfilenode assigned in
+                                                * current xact */
+
    Form_pg_class rd_rel;       /* RELATION tuple */
    TupleDesc   rd_att;         /* tuple descriptor */
    Oid         rd_id;          /* relation's object id */
@@ -167,8 +168,8 @@ typedef struct RelationData
 
    /* These are non-NULL only for an index relation: */
    Form_pg_index rd_index;     /* pg_index tuple describing this index */
+   /* use "struct" here to avoid needing to include htup.h: */
    struct HeapTupleData *rd_indextuple;        /* all of pg_index tuple */
-   /* "struct HeapTupleData *" avoids need to include htup.h here  */
    Form_pg_am  rd_am;          /* pg_am tuple for index's AM */
 
    /*