pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Yeb Havinga <yebhavinga@gmail.com>
To: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
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 17:51:40 +0100
Message-ID: <4CDC1F1C.2030409@gmail.com> (raw)
In-Reply-To: <4CDC1669.5060909@enterprisedb.com>
References: <201011111430.oABEUVPe067398@wwwmaster.postgresql.org>
	<15298.1289490490@sss.pgh.pa.us>
	<4CDC15A5.7050003@gmail.com>
	<4CDC1669.5060909@enterprisedb.com>

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




view thread (21+ messages)  latest in thread

Message-ID: <4CDC1F1C.2030409@gmail.com>
Permalink:  ../4CDC1F1C.2030409@gmail.com/
Also on:    postgresql.org/message-id/4CDC1F1C.2030409@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, heikki.linnakangas@enterprisedb.com, tgl@sss.pgh.pa.us, w.p.dijkstra@mgrid.net
  Subject: Re: BUG #5748: Invalid oidvector data during binary recv
  In-Reply-To: <4CDC1F1C.2030409@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>

* 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