private void addIndex(TableDescription td, String tableId, ColumnDescription columnDescription, String indexNameSuffix, Map<String, String> indexIds, List<String> columnIds) { // Postgres names are maxed at 63 bytes, as long as we use ascii we should have no more than // 63 characters String indexName = toHashedName( td.getTableName() + "_idx_" + indexNameSuffix, 63); String indexId = addIndex(tableId, indexName, false, columnIds); indexIds.put(indexName, indexId); this.columnDescriptionPerIndexId.put(indexName, columnDescription); }