Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id DEB761337B4E for ; Mon, 15 Nov 2010 11:22:16 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 69571-10 for ; Mon, 15 Nov 2010 15:22:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 786F81337B43 for ; Mon, 15 Nov 2010 11:22:09 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id oAFFM7Pk014025; Mon, 15 Nov 2010 10:22:07 -0500 (EST) To: Yeb Havinga cc: Heikki Linnakangas , pgsql-bugs@postgresql.org Subject: Re: BUG #5748: Invalid oidvector data during binary recv In-reply-to: <4CE111D6.5070801@gmail.com> References: <201011111430.oABEUVPe067398@wwwmaster.postgresql.org> <15298.1289490490@sss.pgh.pa.us> <4CDC1380.2090309@enterprisedb.com> <4CE10697.3050309@gmail.com> <4CE10E39.9080806@enterprisedb.com> <4CE111D6.5070801@gmail.com> Comments: In-reply-to Yeb Havinga message dated "Mon, 15 Nov 2010 11:56:22 +0100" Date: Mon, 15 Nov 2010 10:22:07 -0500 Message-ID: <14024.1289834527@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/103 X-Sequence-Number: 28683 Yeb Havinga writes: > Binary send and recv of the value at hand would change it into a 0-D vector. The reason for that is that in general we don't make a distinction between zero-size arrays of different dimensions. oidvector and int2vector are different though. Which is why this should be fixed locally to those two types, rather than changing the behavior of regular arrays. regards, tom lane