Amaury Dumoulin <amaury@castordoc.com> writes:
> I believe it should fail.
> However the error message should state that the constraint is blocking the
> operation.
> The current error message makes it hard to make a connection to the culprit.
Hmm, that's a reasonable concern, though you didn't make it clear that
that was what you were on about. We could possibly provide an addendum
like "CONTEXT: while processing constraint foo" in this situation.
regards, tom lane