Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 7E603B5D94C for ; Mon, 27 Jun 2011 12:23:41 -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 98607-08 for ; Mon, 27 Jun 2011 15:23:35 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f47.google.com (mail-fx0-f47.google.com [209.85.161.47]) by mail.postgresql.org (Postfix) with ESMTP id 45C10B5D803 for ; Mon, 27 Jun 2011 12:23:35 -0300 (ADT) Received: by fxg11 with SMTP id 11so2015821fxg.34 for ; Mon, 27 Jun 2011 08:23:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=TQvqgqRZqmW4Ds9ilD9VkkAR3M9Hf204zEh6Uu+sX3g=; b=gEOKQFi7xENfMY8hgAwYuu0QbtFzhgwXu0jIY897CYaQiuRGkxRFbk0U6HVKKijkiq J0+JXPXdLRuGVlE/4T+QL3Dvl6W0f0S27Y978zg8UU4A92toI/Kh29rpzFMZpiShoQqR RftY4BSQccOaG646KQNmOzjeLTwIkMmIa/RyE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=LYZg0Bq147+3N6aBv1l7bT6/1s1RJzFw/IVDR7Wcf/52lJOvcQs5uuL1p/uDr02k15 zp+Ss+g0nqWFn0slDxwGhEMFEFT2Ft0LE2Jkwr/vyCsiXSq4QmwDOPchHsz5uSNtdkVt e29uxkv6cSgEAtfSpIqOOLxmcagbjY5gfDIWA= Received: by 10.223.79.139 with SMTP id p11mr9027375fak.118.1309188213528; Mon, 27 Jun 2011 08:23:33 -0700 (PDT) Received: from [10.64.1.26] ([213.108.72.250]) by mx.google.com with ESMTPS id n27sm3601387faa.4.2011.06.27.08.23.31 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 27 Jun 2011 08:23:32 -0700 (PDT) Message-ID: <4E08A07A.1090505@gmail.com> Date: Mon, 27 Jun 2011 18:23:38 +0300 From: Vitalii Tymchyshyn User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Florian Weimer CC: Andreas Schmitz , Oliver Jowett , pgsql-jdbc@postgresql.org Subject: Re: bytea performance tweak References: <20110621130713.GB3919@summalogicae.occamlabs.local> <20110622141711.GA2652@summalogicae.occamlabs.local> <20110623100616.GA14152@summalogicae.occamlabs.local> <82pqlzs7gt.fsf@mid.bfk.de> In-Reply-To: <82pqlzs7gt.fsf@mid.bfk.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.799 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.1, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201106/58 X-Sequence-Number: 21982 27.06.11 16:57, Florian Weimer написав(ла): > * Andreas Schmitz: > >> Is there a timeline for fully supporting the binary protocol? > A PostgreSQL installation can contain user-defined types with a custom > binary format, so this will not work with all databases anyway. I'd say it would be up to Java developer to provide it's own decode for such a types (in a PGObject?). If he wants, he should do server-level cast to string in a query text. Of course, I'd leave an option to make non-binary connection. Best regards, Vitalii Tymchyshyn.