Re: Crosstab Problems

From: Joe Conway <mail(at)joeconway(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Stefan Schwarzer <stefan(dot)schwarzer(at)grid(dot)unep(dot)ch>, pgsql-general(at)postgresql(dot)org
Subject: Re: Crosstab Problems
Date: 2007-10-18 18:37:59
Message-ID: 4717A807.1030209@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches

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?

Joe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steve Crawford 2007-10-18 18:55:15 Abbreviation list
Previous Message Alvaro Herrera 2007-10-18 18:33:15 Re: Re : pg_dump SERIAL and SEQUENCE

Browse pgsql-patches by date

  From Date Subject
Next Message Heikki Linnakangas 2007-10-18 21:13:22 Re: [HACKERS] Why copy_relation_data only use wal whenWALarchivingis enabled
Previous Message Scott Marlowe 2007-10-18 16:36:24 Re: Crosstab Problems