Re: BUG #5748: Invalid oidvector data during binary recv

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5748: Invalid oidvector data during binary recv
Дата
Msg-id 15780.1289491883@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #5748: Invalid oidvector data during binary recv  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: BUG #5748: Invalid oidvector data during binary recv
Список pgsql-bugs
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> On 11.11.2010 17:48, Tom Lane wrote:
>> The problem seems to be that array_recv passes back a zero-dimensional
>> array, *not* a 1-D array, when it observes that the input has no
>> elements.  A zero-D array is not part of the subset of possible arrays
>> that we allow for oidvector.

> Yeah, I just reached that conclusion too..

>> I'm less than convinced that this is worth fixing.  oidvector is not
>> intended for general-purpose use anyway.  What's the use-case where this
>> would come up?

> I don't see any use case either, but I guess it would be nice to fix for
> the sake of completeness.

The least risky fix would be to make oidvectorrecv check for a zero-D
result from array_recv and replace it with an empty 1-D result.  I'm
not sufficiently excited about it to do it myself, but if you are,
have at it.

            regards, tom lane

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

Предыдущее
От: Yeb Havinga
Дата:
Сообщение: Re: BUG #5748: Invalid oidvector data during binary recv
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: BUG #5748: Invalid oidvector data during binary recv