I'm cleaning up some unused indexes on some tables. Before removing them I'm looking up to see how they were created. Some of them looks like they were added when the table was created by adding a constraint somename unique int the sql script. It makes me think there are multiple ways to create an index. Does creating a table like this create an index automatically?
(
id serial not null,
name text not null,
other_name text not null,
constraint constraint_or_index
unique (name, other_name)
);