Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 220C863338F for ; Tue, 20 Oct 2009 13:05:46 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 92183-01 for ; Tue, 20 Oct 2009 16:05:34 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp200.iad.emailsrvr.com (smtp200.iad.emailsrvr.com [207.97.245.200]) by mail.postgresql.org (Postfix) with ESMTP id 1FDB36328E8 for ; Tue, 20 Oct 2009 13:05:30 -0300 (ADT) Received: from relay20.relay.iad.mlsrvr.com (localhost [127.0.0.1]) by relay20.relay.iad.mlsrvr.com (SMTP Server) with ESMTP id 81DDC1B403F for ; Tue, 20 Oct 2009 12:05:29 -0400 (EDT) Received: by relay20.relay.iad.mlsrvr.com (Authenticated sender: david.wall-AT-yozons.com) with ESMTPSA id 481EE1B423C for ; Tue, 20 Oct 2009 12:05:29 -0400 (EDT) Message-ID: <4ADDDFC7.3010900@computer.org> Date: Tue, 20 Oct 2009 09:05:27 -0700 From: David Wall User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: pgsql-jdbc Subject: JDBC with PG 8.4 bytea character escaping wire protocol 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.299 tagged_above=-10 required=5 tests=AWL=-1.300, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200910/21 X-Sequence-Number: 20023 Does the JDBC 4 driver for PG 8.4 escape each character of the bytea type, or does it use a binary protocol? From another post, Merlin Moncure wrote, "libpq supports a binary protocol mode which allows you to execute queries sending bytea without escaping." Is that true of the JDBC driver? I'm concerned about the data size expansion that would result for the wire protocol when I use setBytes(). Thanks, David