Maybe some compilers are smart enough to not complain about the previous
coding ... but mine isn't.
Relation conrel;
HeapTuple tup;
Form_pg_type typTup;
- Form_pg_constraint con;
+ Form_pg_constraint con = NULL;
Form_pg_constraint copy_con;
char *conbin;
SysScanDesc scan;
}
if (!found)
- {
- con = NULL; /* keep compiler quiet */
ereport(ERROR,
(errcode(ERRCODE_UNDEFINED_OBJECT),
errmsg("constraint \"%s\" of domain \"%s\" does not exist",
constrName, NameStr(con->conname))));
- }
if (con->contype != CONSTRAINT_CHECK)
ereport(ERROR,