Skip to content

Commit e451dd5

Browse files
committed
Remove too generically named MissingPtr typedef.
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/[email protected]
1 parent 4c850ec commit e451dd5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/include/access/tupdesc.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ typedef struct attrDefault
2525
char *adbin; /* nodeToString representation of expr */
2626
} AttrDefault;
2727

28-
typedef struct attrMissing *MissingPtr;
29-
3028
typedef struct constrCheck
3129
{
3230
char *ccname;
@@ -40,7 +38,7 @@ typedef struct tupleConstr
4038
{
4139
AttrDefault *defval; /* array */
4240
ConstrCheck *check; /* array */
43-
MissingPtr missing; /* missing attributes values, NULL if none */
41+
struct attrMissing *missing; /* missing attributes values, NULL if none */
4442
uint16 num_defval;
4543
uint16 num_check;
4644
bool has_not_null;

0 commit comments

Comments
 (0)