Re: getting all constraint violations

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: getting all constraint violations
Date: 2010-05-21 17:36:24
Message-ID: 21379.1274463384@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com> writes:
> I have a table with many constraints. A user tries to insert a record that violates many of them. The error message I get back lists the first violation. How cani I (or can I) get them all?

You can't, it stops running the command at the first error.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Francisco Reyes 2010-05-21 17:48:03 Re: Select max(primary_key) taking a long time
Previous Message Merlin Moncure 2010-05-21 17:36:15 Re: getting all constraint violations