if (catalog_index != null) {
// If this is a foreign key, then we *do not* want to include an index for it
// since we don't actually do anything to enforce these constraints
if (type == ConstraintType.FOREIGN_KEY) {
boolean ret = table.getIndexes().remove(catalog_index);
LOG.debug("Removing foreign key index " + catalog_index.fullName() + " [" + ret + "]");
indexMap.remove(indexName);
catalog_index = null;
}
else {
// if the constraint name contains index type hints, exercise them (giant hack)