We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e54ae78 commit 9f08452Copy full SHA for 9f08452
src/backend/commands/typecmds.c
@@ -2046,7 +2046,6 @@ AlterDomainValidateConstraint(List *names, char *constrName)
2046
Relation typrel;
2047
Relation conrel;
2048
HeapTuple tup;
2049
- Form_pg_type typTup;
2050
Form_pg_constraint con = NULL;
2051
Form_pg_constraint copy_con;
2052
char *conbin;
@@ -2068,7 +2067,6 @@ AlterDomainValidateConstraint(List *names, char *constrName)
2068
2067
tup = SearchSysCache1(TYPEOID, ObjectIdGetDatum(domainoid));
2069
if (!HeapTupleIsValid(tup))
2070
elog(ERROR, "cache lookup failed for type %u", domainoid);
2071
- typTup = (Form_pg_type) GETSTRUCT(tup);
2072
2073
/* Check it's a domain and check user has permission for ALTER DOMAIN */
2074
checkDomainOwner(tup);
0 commit comments