From: Tom Lane <tgl@sss.pgh.pa.us>
To: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: Yeb Havinga <yebhavinga@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5748: Invalid oidvector data during binary recv
Date: Thu, 11 Nov 2010 11:11:23 -0500
Message-ID: <15780.1289491883@sss.pgh.pa.us> (raw)
In-Reply-To: <4CDC1380.2090309@enterprisedb.com>
References: <201011111430.oABEUVPe067398@wwwmaster.postgresql.org>
<15298.1289490490@sss.pgh.pa.us>
<4CDC1380.2090309@enterprisedb.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, heikki.linnakangas@enterprisedb.com, yebhavinga@gmail.com
Subject: Re: BUG #5748: Invalid oidvector data during binary recv
In-Reply-To: <15780.1289491883@sss.pgh.pa.us>
References: <201011111430.oABEUVPe067398@wwwmaster.postgresql.org> <15298.1289490490@sss.pgh.pa.us> <4CDC1380.2090309@enterprisedb.com> <15780.1289491883@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox