Re: REFERENCES error message complaint, suggestion

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: REFERENCES error message complaint, suggestion
Дата
Msg-id 87u1148cgs.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: REFERENCES error message complaint, suggestion  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: REFERENCES error message complaint, suggestion  (Greg Stark <gsstark@mit.edu>)
ERROR: function round(double precision, integer) does not exist - WTF?  ("Glen Parker" <glenebob@nwlink.com>)
Список pgsql-general
Tom Lane <tgl@sss.pgh.pa.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

В списке pgsql-general по дате отправления:

Предыдущее
От: Eric Davies
Дата:
Сообщение: Re: gist index build produces corrupt result on
Следующее
От: phil campaigne
Дата:
Сообщение: Setting up Postgresql on Linux