Re: unique constraint violation on multiple-rows update - Mailing list pgsql-general

From Karsten Hilbert
Subject Re: unique constraint violation on multiple-rows update
Date
Msg-id aeTiDr-FDOg_z7Wh@hermes.hilbert.loc
Whole thread
In response to Re: unique constraint violation on multiple-rows update  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: unique constraint violation on multiple-rows update
List pgsql-general
Am Sun, Apr 19, 2026 at 06:54:02AM -0700 schrieb David G. Johnston:

> > > Running that does violate the (non-deferred) UNIQUE
> > > constraint on the table column, however.
>
> You know about deferred constraints, you should use them here.  This is one
> of the key use cases motivating their existence.

Indeed. I was of the mistaken impression that UNIQUE
constraints were not deferrable ...

:-)

Works, thanks,
Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B



pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: unique constraint violation on multiple-rows update
Next
From: Tom Lane
Date:
Subject: Re: unique constraint violation on multiple-rows update