pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Yeb Havinga <yebhavinga@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: pgsql-bugs@postgresql.org
Cc: w.p.dijkstra@mgrid.net <w.p.dijkstra@mgrid.net>
Subject: Re: BUG #5748: Invalid oidvector data during binary recv
Date: Thu, 11 Nov 2010 21:13:43 +0100
Message-ID: <4CDC4E77.9040107@gmail.com> (raw)
In-Reply-To: <16673.1289494618@sss.pgh.pa.us>
References: <201011111430.oABEUVPe067398@wwwmaster.postgresql.org>
	<15298.1289490490@sss.pgh.pa.us>
	<4CDC15A5.7050003@gmail.com>
	<4CDC1669.5060909@enterprisedb.com>
	<4CDC1F1C.2030409@gmail.com>
	<16673.1289494618@sss.pgh.pa.us>

On 2010-11-11 17:56, Tom Lane wrote:
> Yeb Havinga<yebhavinga@gmail.com>  writes:
>> If there is going to be a patch fixing things, the value
>> '{"1"}'::oidvector[] can't be exported and imported through binary send
>> recv as well.
> That's pilot error, nothing more nor less.  (oidvector != oidvector[])
We're not trying to import the '{"1"}' binary value with oidvectorrecv. 
We hit the error in oidvectorrecv because we binary received an 
oidvector[] (through array_recv), so made an initial test case with an 
oidvector, not oidvector[].

Anyway I now have troubles to make a good test case to trip the lbound 
check. The actual oidvector array that failed was '{"23 23 2275 2281 
23","",2281,26,2275,23,"25 25",701,25,20,1700,"23 23","701 
701",21,700,"1700 1700","603 603","2281 2281","20 20","600 600","718 
718","21 21",1022,"2281 26 2281 23","2281 26 2281 21 2281","17 17","20 
23",602,869,1186,"601"}', but when I test with that now, the non-zero 
lbound value is on a oidvector that also has a zero ndim.

IOW: sorry for the noise, just trying to make a good bug report.

regards,
Yeb Havinga




view thread (21+ messages)  latest in thread

Message-ID: <4CDC4E77.9040107@gmail.com>
Permalink:  ../4CDC4E77.9040107@gmail.com/
Also on:    postgresql.org/message-id/4CDC4E77.9040107@gmail.com

 · 

reply

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: yebhavinga@gmail.com, tgl@sss.pgh.pa.us, heikki.linnakangas@enterprisedb.com, w.p.dijkstra@mgrid.net
  Subject: Re: BUG #5748: Invalid oidvector data during binary recv
  In-Reply-To: <4CDC4E77.9040107@gmail.com>
  References: <201011111430.oABEUVPe067398@wwwmaster.postgresql.org> <15298.1289490490@sss.pgh.pa.us> <4CDC15A5.7050003@gmail.com> <4CDC1669.5060909@enterprisedb.com> <4CDC1F1C.2030409@gmail.com> <16673.1289494618@sss.pgh.pa.us> <4CDC4E77.9040107@gmail.com>

* 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