Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 69AE01337B53 for ; Fri, 26 Nov 2010 02:02:39 -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 18783-07; Fri, 26 Nov 2010 06:02:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 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 057291337B43; Fri, 26 Nov 2010 02:02:27 -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 oAQ62P10028533; Fri, 26 Nov 2010 01:02:26 -0500 (EST) To: Maciek Sakrejda cc: =?UTF-8?Q?Rados=C5=82aw_Smogura?= , PG Hackers , PostgreSQL JDBC List Subject: Re: [JDBC] JDBC and Binary protocol error, for some statements In-reply-to: References: <201011241918.40930.rsmogura@softperience.eu> <14932.1290705783@sss.pgh.pa.us> <18034.1290714129@sss.pgh.pa.us> Comments: In-reply-to Maciek Sakrejda message dated "Thu, 25 Nov 2010 12:59:53 -0800" Date: Fri, 26 Nov 2010 01:02:25 -0500 Message-ID: <28532.1290751345@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/1767 X-Sequence-Number: 174910 Maciek Sakrejda writes: >> 21:43:02.264 (26) FE=> Describe(statement=S_1) > You're still doing the statement-flavor Describe. As Tom pointed out, > this won't tell you the result types because it doesn't know them. > Actually, technically if you issue a statement-flavor Describe *after* > a Bind, the server does have this information, but I'm not surprised > that it doesn't send it correctly, since it seems pointless to send > the statement variation after already doing a Bind. In principle you could open more than one Portal off a Statement at the same time, so it wouldn't necessarily be well-defined anyway. regards, tom lane