X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A2CADDADC8 for ; Tue, 25 Oct 2005 11:48:53 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 69219-10 for ; Tue, 25 Oct 2005 14:48:49 +0000 (GMT) Received: from mail26.sea5.speakeasy.net (mail26.sea5.speakeasy.net [69.17.117.28]) by svr1.postgresql.org (Postfix) with ESMTP id EAC91DADD5 for ; Tue, 25 Oct 2005 11:48:50 -0300 (ADT) Received: (qmail 8369 invoked from network); 25 Oct 2005 14:48:55 -0000 Received: from dsl081-050-168.sfo1.dsl.speakeasy.net (HELO [192.168.1.102]) (kgeis@[64.81.50.168]) (envelope-sender ) by mail26.sea5.speakeasy.net (qmail-ldap-1.03) with RC4-SHA encrypted SMTP for ; 25 Oct 2005 14:48:55 -0000 In-Reply-To: <13234.1130247178@sss.pgh.pa.us> References: <13234.1130247178@sss.pgh.pa.us> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <5de916660e000c9b77ae3ec5e213b0a9@speakeasy.net> Content-Transfer-Encoding: 7bit Cc: Tom Lane From: Ken Geis Subject: Re: patch: ResultSetTest.java Date: Tue, 25 Oct 2005 07:48:56 -0700 To: pgsql-jdbc@postgresql.org X-Mailer: Apple Mail (2.623) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.214 required=5 tests=[AWL=0.214] X-Spam-Level: X-Archive-Number: 200510/124 X-Sequence-Number: 14055 On Oct 25, 2005, at 6:32 AM, Tom Lane wrote: > kgeis@speakeasy.net writes: >> The second section has an unnecessarily complex query that caused me >> problems because pg_database contains a column of type aclitem[] which >> does not support binary transfer from the database. > > Say what? > > The proposed change is probably a good idea anyway, primarily because > there isn't necessarily any template1 database. But if fetching > aclitem[] fails then there's something quite wrong, and I don't believe > it's on the server side. > > regards, tom lane aclitem is one of few types that does not have send and receive functions defined. According to the docs for "CREATE TYPE," "If this function is not supplied, the type cannot participate in binary output." The problem came up for me because I am implementing binary data transfer in the JDBC driver, and my first draft assumes that all data transfers are binary. I worked around it elsewhere by converting it to a string within SQL (curiously, I couldn't cast it to text, but I could call array_to_string on an aclitem[]). Ken