Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id D739AB5DBDF for ; Tue, 28 Jun 2011 04:26:32 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 73863-03 for ; Tue, 28 Jun 2011 07:26:26 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.softperience.eu (static-ip-217-118-26-141.inaddr.intergenia.de [217.118.26.141]) by mail.postgresql.org (Postfix) with ESMTP id 1C4FFB5D803 for ; Tue, 28 Jun 2011 04:26:25 -0300 (ADT) Received: from Inbox (188.147.97.170.nat.umts.dynamic.t-mobile.pl [188.147.97.170]) by mail.softperience.eu (Postfix) with ESMTPA id 49C42C000B1; Tue, 28 Jun 2011 09:26:27 +0200 (CEST) MIME-Version: 1.0 content-class: From: Radoslaw Smogura Subject: Re: bytea performance tweak Date: Tue, 28 Jun 2011 09:26:22 +0200 Importance: normal X-Priority: 3 To: Maciek Sakrejda CC: Florian Weimer , Andreas Schmitz , Oliver Jowett , Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Message-Id: <20110628072626.1C4FFB5D803@mail.postgresql.org> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201106/72 X-Sequence-Number: 21996 Nop, this is problem with information passed by encoding to binary format .= Currently driver sends timestamp and offset as text unknown.=0DHowever i= n binary mode you may only send Julian local date or Julian UTC date, this= means when you call set timestamp you need to know what is target type of = field.=0DSending timestamps as text unknown resolves this, but may add prob= lems like in post you has referenced.=0D=0DRegards,=0DRadek=0A= =0A= -----Original Message----- From: Maciek Sakrejda Sent: 27 czerwca 2011 21:33 To: Radoslaw Smogura Cc: Florian Weimer; Andreas Schmitz; Oliver Jowett; pgsql-jdbc@postgresql.o= rg Subject: Re: [JDBC] bytea performance tweak > I started with different assumption - encode everything in binary, eventu= ally fix server. I didn't realize the server lacked binary support for some types. I guess the driver can disclose this as a caveat emptor when documenting the binary flag. If you know your particular query workload will not use certain types, it's not really an issue. If you can't be sure, that's pretty much a show-stopper unless there's some kind of automatic fallback to text mode at the driver level, which sounds much too crazy to be useful. > Problems are with timestamp encoding , here you can't send unknown, and= I don't think it will be fixed in any way. What issue are you talking about here? Is it related to this: http://archives.postgresql.org/pgsql-jdbc/2006-12/msg00037.php ? If so, we don't necessarily need to implement binary parameter input to support binary result output. --- Maciek Sakrejda | System Architect | Truviso 1065 E. Hillsdale Blvd., Suite 215 Foster City, CA 94404 (650) 242-3500 Main www.truviso.com