Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 925A31337B90 for ; Thu, 11 Nov 2010 12:47:26 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 04385-03 for ; Thu, 11 Nov 2010 16:47:19 +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 DBCFC133798E for ; Thu, 11 Nov 2010 12:47:18 -0400 (AST) Received: by eye27 with SMTP id 27so1247393eye.19 for ; Thu, 11 Nov 2010 08:47:17 -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=Dlyv2onJPafcFnS3m8r7RX56M6rdDlu7qWvsNe68bgE=; b=hfp50WR/S86rIePdjEylFtCyn7TGzI5zZFCQlJLny+CE7oeS32OOJu6soStBvJva9D o6UwO29BU4+wk8Rtz6tHuqmQ7Yih7Rcd+5YRpv2LaBSFZlAP836bV0DOXrkG0NGCGlYm hAPfJeazN/ihIZ/dVJ5byJkCUenzaVs+UYaPg= 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=pUzBAx1EWITexubpOSaEJkfyCuTrZx7hkGY72EC6TAGO5jmmkJ4HQxe6SSVm1zxlH8 Odo+sFf0t7zOc4Q+zNTcOJBBk0ynH26Osm8svyHtsG1wovnoYlEPIGo/GcaZB0aIuINE AwH5unjhKkqvEzYVQpNnMhdaftx4jxZqV3sSo= Received: by 10.213.2.206 with SMTP id 14mr1100011ebk.35.1289494036934; Thu, 11 Nov 2010 08:47:16 -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 b52sm2118371eei.1.2010.11.11.08.47.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 11 Nov 2010 08:47:15 -0800 (PST) Message-ID: <4CDC1F1C.2030409@gmail.com> Date: Thu, 11 Nov 2010 17:51:40 +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: Heikki Linnakangas CC: Tom Lane , 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> In-Reply-To: <4CDC1669.5060909@enterprisedb.com> 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/77 X-Sequence-Number: 28657 On 2010-11-11 17:14, Heikki Linnakangas wrote: > On 11.11.2010 18:11, Yeb Havinga wrote: >> We're currently reading data from a remote pg_statistics, in particular >> stavalues1.. etc. Even when our own user defined relations do not make >> use of oidvectors (or intvectors), during testing on arbitrary >> pg_statistic rows we encountered this error message. Nonetheless we >> decided to report it as a bug, since it was not related to anyarray >> handling, but clearly a bug that oidvector cannot input binary, what it >> can input as text and output binary. > > Just reading such an oidvector should not throw an error, you must've > tried to send it back to the server, perhaps to store it to a table. Hmm.. we're reading with libpq in binary mode and the error is thrown in the receive function call. No storing yet in a table at that point. > But pg_statistic.stavalues* are a special anyway. They are defined as > anyarray, but we don't normally allow you to create a table with > anyarray columns. > Yes, but the test case shows the actual error can be triggered without any use of anyarray. 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. regards, Yeb Havinga