Re: notice about costly ri checks (2)

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: notice about costly ri checks (2)
Дата
Msg-id 20040305085526.X88253@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: notice about costly ri checks (2)  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: notice about costly ri checks (2)
Список pgsql-patches
On Fri, 5 Mar 2004, Tom Lane wrote:

> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Tom Lane wrote:
> >> I'd suggest something along the lines of
> >>
> >> NOTICE: foreign key constraint "constrname" will require a cross-type conversion
> >> DETAIL: key columns "fkcol" and "pkcol" are of different types integer and double precision
>
> > I suggested the constraint name because of multi-column keys, where he
> > would have to print an arbitrary number of columns in the message.  It
> > didn't seem worth doing that work.  I see your idea of just printing the
> > column, but that doesn't really point to the primary/foreign key
> > relationship.  If the user can't figure out which columns are a mismatch
> > from the constraint name, they have larger problems than this.  :-)
>
> Why should we make them guess which column is the problem, when we know
> it perfectly well?

As a side question, if there are multiple cross-type conversions in one
constraint on different column pairs, what do we think the message should
be? One message with multiple column mentions in detail or multiple
notices?  (I haven't looked at the patch to see if one or the other is
easier with how it's set up)

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: notice about costly ri checks (2)
Следующее
От: John Gray
Дата:
Сообщение: Re: Updated version of contrib/xml (at last)