Commit 9f084527 authored by Peter Eisentraut's avatar Peter Eisentraut

Remove unused variable to silence compiler warning

parent e54ae784
...@@ -2046,7 +2046,6 @@ AlterDomainValidateConstraint(List *names, char *constrName) ...@@ -2046,7 +2046,6 @@ AlterDomainValidateConstraint(List *names, char *constrName)
Relation typrel; Relation typrel;
Relation conrel; Relation conrel;
HeapTuple tup; HeapTuple tup;
Form_pg_type typTup;
Form_pg_constraint con = NULL; Form_pg_constraint con = NULL;
Form_pg_constraint copy_con; Form_pg_constraint copy_con;
char *conbin; char *conbin;
...@@ -2068,7 +2067,6 @@ AlterDomainValidateConstraint(List *names, char *constrName) ...@@ -2068,7 +2067,6 @@ AlterDomainValidateConstraint(List *names, char *constrName)
tup = SearchSysCache1(TYPEOID, ObjectIdGetDatum(domainoid)); tup = SearchSysCache1(TYPEOID, ObjectIdGetDatum(domainoid));
if (!HeapTupleIsValid(tup)) if (!HeapTupleIsValid(tup))
elog(ERROR, "cache lookup failed for type %u", domainoid); elog(ERROR, "cache lookup failed for type %u", domainoid);
typTup = (Form_pg_type) GETSTRUCT(tup);
/* Check it's a domain and check user has permission for ALTER DOMAIN */ /* Check it's a domain and check user has permission for ALTER DOMAIN */
checkDomainOwner(tup); checkDomainOwner(tup);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment