pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Radoslaw Smogura <rsmogura@softperience.eu>
To: Maciek Sakrejda <msakrejda@truviso.com>
Cc: Florian Weimer <fweimer@bfk.de>
Cc: Andreas Schmitz <schmitz@occamlabs.de>
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: bytea performance tweak
Date: Tue, 28 Jun 2011 09:26:22 +0200
Message-ID: <20110628072626.1C4FFB5D803@mail.postgresql.org> (raw)

Nop, this is problem with information passed by encoding to binary format . Currently driver  sends timestamp and offset as text unknown.
However  in 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.
Sending timestamps as text unknown resolves this, but may add problems like in post you has referenced.

Regards,
Radek

-----Original Message-----
From: Maciek Sakrejda
Sent: 27 czerwca 2011 21:33
To: Radoslaw Smogura
Cc: Florian Weimer; Andreas Schmitz; Oliver Jowett; pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] bytea performance tweak

> I started with different assumption - encode everything in binary, eventually 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





view thread (17+ messages)

Message-ID: <20110628072626.1C4FFB5D803@mail.postgresql.org>
Permalink:  ../20110628072626.1C4FFB5D803@mail.postgresql.org/
Also on:    postgresql.org/message-id/20110628072626.1C4FFB5D803@mail.postgresql.org

 · 

reply

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: rsmogura@softperience.eu, msakrejda@truviso.com, fweimer@bfk.de, schmitz@occamlabs.de, oliver@opencloud.com
  Subject: Re: bytea performance tweak
  In-Reply-To: <20110628072626.1C4FFB5D803@mail.postgresql.org>
  References: <20110628072626.1C4FFB5D803@mail.postgresql.org>

* 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