Re: REFERENCES error message complaint, suggestion

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


Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> I think this is sufficient though, and that database designers ought to
> choose helpful names for constraints. I should have said something like
> ... constraint "f1 must be positive" check (f1 > 0)
> if I were concerned about the error message quality.

Consider the case of a query like
"INSERT INTO foo (SELECT ... FROM baz)"
or
"UPDATE foo set x = func(y,z)"

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

--
greg

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message phil campaigne 2004-03-04 23:14:18 Setting up Postgresql on Linux
Previous Message Eric Davies 2004-03-04 21:31:50 Re: gist index build produces corrupt result on