Re: Strange ADD CHECK error message

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Strange ADD CHECK error message
Date: 2001-11-15 07:44:10
Message-ID: 20011114233518.V3740-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 15 Nov 2001, Christopher Kings-Lynne wrote:

> I have noticed a strange error message when adding check constraints.
> Basically the ADD CHECK below is failing because the field it is trying to
> force to be NOT NULL already has NULL values in it. However, the error
> message it produces is quite cryptic and it took me a while to figure out
> what was going on.
>
> Is it still like this in 7.2b2, and should it be changed?

Pretty sure and possibly. In general, the message is currently
based on the same template as the error you get if you were to
fail it later. I don't have a good phrase to replace it with,
but a more descriptive message would probably be good.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alessio Bragadini 2001-11-15 08:11:31 Problem compiling beta2 on Digital Unix (cc)
Previous Message Christopher Kings-Lynne 2001-11-15 07:15:30 Strange ADD CHECK error message