Remove uniqueness of index in PostgreSQL

后端 未结 5 1296
南笙
南笙 2021-01-31 06:56

In my PostgreSQL database I have a unique index created this way:

CREATE UNIQUE INDEX  ON  USING btree (my_column)
5条回答
  •  情歌与酒
    2021-01-31 07:25

    I don't think it's possible... even in the pgAdmin III UI, if you try to edit a constraint created with your statement, the "Unique" box is greyed-out; you can't change it through the UI. Combined with your research on the ALTER INDEX docs, I'd say it can't be done.

提交回复
热议问题