Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 84677B5DBF2 for ; Thu, 23 Jun 2011 07:06:33 -0300 (ADT) 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 48042-10 for ; Thu, 23 Jun 2011 10:06:27 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.lat-lon.de (mail.lat-lon.de [178.63.90.186]) by mail.postgresql.org (Postfix) with ESMTP id 72A1FB5DBF0 for ; Thu, 23 Jun 2011 07:06:27 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mail.lat-lon.de (Postfix) with ESMTP id 1782C198003; Thu, 23 Jun 2011 12:06:27 +0200 (CEST) X-Virus-Scanned: by amavisd-new at lat-lon.de Received: from mail.lat-lon.de ([127.0.0.1]) by localhost (mail.lat-lon.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vT-05nGt0HE2; Thu, 23 Jun 2011 12:06:18 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lat-lon.de (Postfix) with ESMTP id 8EE49198005; Thu, 23 Jun 2011 12:06:18 +0200 (CEST) Received: from localhost (unknown [217.203.68.35]) (Authenticated sender: schmitz@lat-lon.de) by mail.lat-lon.de (Postfix) with ESMTP id 1EF66198003; Thu, 23 Jun 2011 12:06:18 +0200 (CEST) Date: Thu, 23 Jun 2011 12:06:16 +0200 From: Andreas Schmitz To: Oliver Jowett Cc: pgsql-jdbc@postgresql.org Subject: Re: bytea performance tweak Message-ID: <20110623100616.GA14152@summalogicae.occamlabs.local> References: <20110621130713.GB3919@summalogicae.occamlabs.local> <20110622141711.GA2652@summalogicae.occamlabs.local> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/54 X-Sequence-Number: 21978 --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Oliver Jowett wrote: Hi, > On 23 June 2011 02:17, Andreas Schmitz wrote: >=20 > > I was wondering why the protocol uses such an encoding anyway. Wouldn't > > it be a lot faster just sending the bytes as they are? >=20 > We can request binary-format data, which for bytea is indeed just the > raw bytes, but the problem is that it's all or nothing: if we request > binary data we have to handle binary results for all datatypes, not > just bytea (because the request is per-column and generally the driver > doesn't know the column type at the point it makes the request) > Some progress has been made with that, but it's not production-ready > yet I think. ok, understood. Is there a timeline for fully supporting the binary protocol? Best regards, Andreas --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk4DEBgACgkQ737OVr+Ru7pBQQCgmvRuXK/PJJzHjYgOtdTCYQOE XP4An3EeZuQwtCCQJFQh+sXXOPj1rfnl =OuBi -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ--