Re: Crosstab Problems

Поиск
Список
Период
Сортировка
От Jorge Godoy
Тема Re: Crosstab Problems
Дата
Msg-id 200710182102.56340.jgodoy@gmail.com
обсуждение исходный текст
Ответ на Re: Crosstab Problems  (Joe Conway <mail@joeconway.com>)
Ответы Re: Crosstab Problems  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Em Thursday 18 October 2007 16:37:59 Joe Conway escreveu:
> Tom Lane wrote:
> > so it's trying to pstrdup a null result from SPI_getvalue.
> >
> > Obviously it shouldn't crash, but I'm not sure what it *should* do in
> > this case.  Joe?
>
> The row is pretty useless without a rowid in this context -- it seems
> like the best thing to do would be to skip those rows entirely. Of
> course you could argue I suppose that it ought to throw an ERROR and
> bail out entirely. Maybe a good compromise would be to skip the row but
> throw a NOTICE?

If I were using it and having this problem I'd rather have an ERROR.  It isn't
uncommon for people not look at their logs and it isn't uncommon for them
just run command from some language using a database adapter that might not
return the NOTICE output.  The ERROR wouldn't pass unnoticed.

--
Jorge Godoy      <jgodoy@gmail.com>


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

Предыдущее
От: brian
Дата:
Сообщение: Re: Group By question
Следующее
От: Jorge Godoy
Дата:
Сообщение: Re: running postgres