Re: REFERENCES error message complaint, suggestion

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Greg Stark <gsstark(at)MIT(dot)EDU>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: REFERENCES error message complaint, suggestion
Date: 2004-03-04 23:19:25
Message-ID: 87llmg8aki.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Greg Stark <gsstark(at)MIT(dot)EDU> writes:

> It's great to know which constraint was violated but that doesn't really help
> you figure out *why* it was violated.

On further thought it would never be feasible to do what the other poster is
really looking for. At least for table constraints it would require poking
through the expression to determine which columns might have caused the
violation.

Perhaps a better idea would be a debugging log message that dumped the entire
contents of a row update or insertion that fails due to any constraint. That
would be disabled normally but easy to enable and produce information that
would be very helpful for a dba loading data or doing large updates.

Especially if there's an option to complete the operation producing all the
errors before forcing the rollingback of the transaction.

--
greg

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message scott.marlowe 2004-03-04 23:49:55 Re: Setting up Postgresql on Linux
Previous Message phil campaigne 2004-03-04 23:14:18 Setting up Postgresql on Linux