Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 57C0F1337B8D for ; Thu, 11 Nov 2010 16:09:28 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 30217-07 for ; Thu, 11 Nov 2010 20:09:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ey0-f174.google.com (mail-ey0-f174.google.com [209.85.215.174]) by mail.postgresql.org (Postfix) with ESMTP id 96A1B1336971 for ; Thu, 11 Nov 2010 16:09:20 -0400 (AST) Received: by eye27 with SMTP id 27so1434481eye.19 for ; Thu, 11 Nov 2010 12:09:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=3SGFE4A5ayuE90IB2aOhFWE3zwhpvywfEXYk9HdsJsY=; b=FhjNyTaexZ2tfOKzJHX/+Yp7Tw91CnwGY8KVWz7o/lOGTHuw968F9rZGr//QBVF+HK tPDwhmU7sLlmofr9gspBxy/d2fQbwVw1FjLefPzn7OxqY8tRHArRzfIqBWaKCo5F/c6V yJaYaE8u7B5NTyEyr1AR1MqGOSZF+xKgyywDo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=m38ajhNfPkVXo0awwwUsodI41o4M2mhByg3T0qqHAjuF8aTDBzw2k0YwIgidyBknVH mEVcDrgGsXF8jbQRIeZxd6JwJaBnnGtwmjB95XH247zWIACPDKIHbts0l9kd15e3GsE5 tAEIE9BMRVilagYxHYuauh1Fb0bsWExGrCdCQ= Received: by 10.213.13.81 with SMTP id b17mr2192595eba.85.1289506159535; Thu, 11 Nov 2010 12:09:19 -0800 (PST) Received: from [0.0.0.0] (5357DA75.cm-6-8d.dynamic.ziggo.nl [83.87.218.117]) by mx.google.com with ESMTPS id q58sm2300059eeh.15.2010.11.11.12.09.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 11 Nov 2010 12:09:18 -0800 (PST) Message-ID: <4CDC4E77.9040107@gmail.com> Date: Thu, 11 Nov 2010 21:13:43 +0100 From: Yeb Havinga User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: Tom Lane CC: Heikki Linnakangas , pgsql-bugs@postgresql.org, "w.p.dijkstra@mgrid.net" Subject: Re: BUG #5748: Invalid oidvector data during binary recv 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> In-Reply-To: <16673.1289494618@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201011/80 X-Sequence-Number: 28660 On 2010-11-11 17:56, Tom Lane wrote: > Yeb Havinga 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