Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id CE8531337B34 for ; Thu, 11 Nov 2010 12:19:01 -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 52050-07 for ; Thu, 11 Nov 2010 16:18:54 +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 C31D81337B5A for ; Thu, 11 Nov 2010 12:18:53 -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 oABGHalc015910; Thu, 11 Nov 2010 11:17:36 -0500 (EST) To: Heikki Linnakangas , Yeb Havinga , pgsql-bugs@postgresql.org 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> Comments: In-reply-to Tom Lane message dated "Thu, 11 Nov 2010 11:11:23 -0500" Date: Thu, 11 Nov 2010 11:17:35 -0500 Message-ID: <15909.1289492255@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/73 X-Sequence-Number: 28653 BTW ... it strikes me there's another inconsistency between oidvectorin and oidvectorrecv, namely that the former enforces a maximum of FUNC_MAX_ARGS elements whereas the latter has no such limit. Should we do something about that, and if so what? It wouldn't be too hard to get rid of the former's maximum, but I'm worried about whether any code is dependent on an assumption that oidvectors can't get toasted. The type's marked untoastable in pg_type, so maybe enforcing the same limit in the latter is a safer idea. regards, tom lane