PostgreSQL9.0用の同期レプリケーションパッチ
Revision | 9f084527a48f7c9ceb995d7bc39da63ae1941a3c (tree) |
---|---|
Zeit | 2011-07-05 00:03:17 |
Autor | Peter Eisentraut <peter_e@gmx....> |
Commiter | Peter Eisentraut |
Remove unused variable to silence compiler warning
@@ -2046,7 +2046,6 @@ AlterDomainValidateConstraint(List *names, char *constrName) | ||
2046 | 2046 | Relation typrel; |
2047 | 2047 | Relation conrel; |
2048 | 2048 | HeapTuple tup; |
2049 | - Form_pg_type typTup; | |
2050 | 2049 | Form_pg_constraint con = NULL; |
2051 | 2050 | Form_pg_constraint copy_con; |
2052 | 2051 | char *conbin; |
@@ -2068,7 +2067,6 @@ AlterDomainValidateConstraint(List *names, char *constrName) | ||
2068 | 2067 | tup = SearchSysCache1(TYPEOID, ObjectIdGetDatum(domainoid)); |
2069 | 2068 | if (!HeapTupleIsValid(tup)) |
2070 | 2069 | elog(ERROR, "cache lookup failed for type %u", domainoid); |
2071 | - typTup = (Form_pg_type) GETSTRUCT(tup); | |
2072 | 2070 | |
2073 | 2071 | /* Check it's a domain and check user has permission for ALTER DOMAIN */ |
2074 | 2072 | checkDomainOwner(tup); |