Skip site navigation (1) Skip section navigation (2)

Re: Binary Cursors, and the COPY command

From: "Thomas Hallgren" <thhal(at)mailblocks(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Binary Cursors, and the COPY command
Date: 2004-07-27 09:39:54
Message-ID: ce587j$ga1$1@sea.gmane.org (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-jdbc
"Oliver Jowett" <oliver(at)opencloud(dot)com> wrote in message
news:4105FF43(dot)40508(at)opencloud(dot)com(dot)(dot)(dot)
> NIO is not present before JDK 1.4. The JDBC driver, at least, needs to
> support earlier JVMs.
>
Clients only capable of network order (such as a Java 1.3 based JDBC driver)
must of course be supported still. No argument there. My objection was to
your general statement that "Java has no idea what the native byte order
is".

Another more philosophical question (more suitable on the jdbc list) is when
the Java 1.3 support should be limited (or perhaps discontinued altogether)
so that further development can exploit everything that 1.4 provides. After
all, it's been around for more than 2 years now. AFAIK, the early bugs
forcing you to cling on to the 1.3 have been fixed a long time ago. Doesn't
the current 3.0 driver make use of features from the Java 1.4 version of
java.sql already?

> The problem with using native byte orderings is not the byte ordering
> itself, but that the order is unpredictable -- at best, you have to
> implement code to handle both orders, and at worst you have to just take
> a guess and hope you were right..
>
Sure, but those problems are present regardless of implementation language.

Regards,

Thomas Hallgren



In response to

Responses

pgsql-hackers by date

Next:From: Oliver JowettDate: 2004-07-27 10:04:41
Subject: Re: [HACKERS] Binary Cursors, and the COPY command
Previous:From: Thomas F.O'ConnellDate: 2004-07-27 09:10:34
Subject: Re: why is postgres-R not in standard dev Path.

pgsql-jdbc by date

Next:From: Oliver JowettDate: 2004-07-27 10:04:41
Subject: Re: [HACKERS] Binary Cursors, and the COPY command
Previous:From: j.random.programmerDate: 2004-07-27 08:45:18
Subject: Bug in 7.4_213 driver: returns VARCHAR instead of LONGVARCHAR for text types

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group