On Tue, 9 Jun 2020 at 00:42, Laura Smith <n5d9xq3ti233xiyif2vp@xxxxxxxxxxxxx> wrote: > What'st the current state of play with indexes and ON CONFLICT ? The docs seem to vaguely suggest it is possible, but this SO question (https://stackoverflow.com/questions/38945027/) seems to suggest it is not. > > I've got a unique named index on a table (i.e. "create unique index xyz...") but I cannot seem to be able to refer to it in a function ? > ON CONFLICT (index_name) .... : does not work > ON CONFLICT ON CONSTRAINT index_name....: does not work Creating a unique index does not create a unique constraint. If you create a unique constraint, it'll create a unique index to enforce the constraint. ON CONSTRAINT requires a constraint name, not an index name. David