Remove too generically named MissingPtr typedef.
authorAndres Freund <[email protected]>
Tue, 15 Jan 2019 00:07:22 +0000 (16:07 -0800)
committerAndres Freund <[email protected]>
Tue, 15 Jan 2019 00:25:50 +0000 (16:25 -0800)
As there's only a single user of the typedef in the entire codebase,
just use the underlying struct directly.

Per complaint from Alvaro Herrera

Author: Andres Freund
Discussion: https://postgr.es/m/201901141836[email protected]

src/include/access/tupdesc.h

index d88bdcec84776b37698a47e8974786ec18fc397b..93546ce585b84c138d84abf65aa1a052c72d9d5e 100644 (file)
@@ -25,8 +25,6 @@ typedef struct attrDefault
    char       *adbin;          /* nodeToString representation of expr */
 } AttrDefault;
 
-typedef struct attrMissing *MissingPtr;
-
 typedef struct constrCheck
 {
    char       *ccname;
@@ -40,7 +38,7 @@ typedef struct tupleConstr
 {
    AttrDefault *defval;        /* array */
    ConstrCheck *check;         /* array */
-   MissingPtr  missing;        /* missing attributes values, NULL if none */
+   struct attrMissing *missing;        /* missing attributes values, NULL if none */
    uint16      num_defval;
    uint16      num_check;
    bool        has_not_null;