I have to indexes on my table. The first was created by Django and the second by me. I'm not completely certain what the extra CONSTRAINT means in the first index and am wondering how I would change my CREATE INDEX statement to add that to it.
"customers_phonetype_customer_id_176731583d230ba5_uniq" UNIQUE CONSTRAINT, btree (customer_id, display) ;-- Django created "customers_phonetype_customer_id_uniq" UNIQUE, btree (customer_id, lower(display::text)) ; -- Manually created This is how I manually created the second index:
create unique index customers_phonetype_customer_id_uniq on customers_phonetype (customer_id, lower(display)); What is the meaning of the extra word CONSTRAINT in this case? I'm not seeing it in the docs.