From: Ken Geis <kgeis@speakeasy.net>
To: pgsql-jdbc@postgresql.org
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: patch: ResultSetTest.java
Date: Tue, 25 Oct 2005 07:48:56 -0700
Message-ID: <5de916660e000c9b77ae3ec5e213b0a9@speakeasy.net> (raw)
In-Reply-To: <13234.1130247178@sss.pgh.pa.us>
References: <W277193702285981130228293@webmail4>
<13234.1130247178@sss.pgh.pa.us>
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
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-jdbc@postgresql.org
Cc: kgeis@speakeasy.net, tgl@sss.pgh.pa.us
Subject: Re: patch: ResultSetTest.java
In-Reply-To: <5de916660e000c9b77ae3ec5e213b0a9@speakeasy.net>
References: <W277193702285981130228293@webmail4> <13234.1130247178@sss.pgh.pa.us> <5de916660e000c9b77ae3ec5e213b0a9@speakeasy.net>
* 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