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

Re: [JDBC] Prepared statement performance...

From: "Peter Kovacs" <peter(dot)kovacs(at)sysdata(dot)siemens(dot)hu>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Barry Lind" <barry(at)xythos(dot)com>,"Dmitry Tkach" <dmitry(at)openratings(dot)com>,<pgsql-general(at)postgresql(dot)org>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [JDBC] Prepared statement performance...
Date: 2002-09-28 17:35:45
Message-ID: 018d01c26715$864fdc30$55550a8b@ACER (view raw, whole thread or download thread mbox)
Lists: pgsql-generalpgsql-jdbc
Thank you for your remark. But we're talking about SQL statements (and not
JDBC statements), aren't we? I have not found anything as yet which would
indicate that the JDBC API significantly redefined the meaning of the term
"statement" compared to what had been known as SQL statement well before
JDBC appeared. And in this regard (i.e. to clarify what has/had been meant
by "SQL statement"), the SQL spec seemed to me a good starting point,
although anecdotical evidence can, of course, also be used, if you can
provide some.

Your remark is correct, if you mean that the JDBC API does not explicitely
restricts you from putting in your SQL statement anything you wish. But
(provided I understand the big picture) JDBC has been designed for a very
specific kind of resource managers: database servers communicating with
their clients via SQL statements. There exists a specification for a very
generic JAVA resource adapter, which explicitely allows you to put over the
wire anything you wish (actually, anything the resource manager it is
intended for understands). But this generic resource adapter is called
Connector, and not JDBC driver. So if you want to interpret liberally the
API between the server and the client, the postgres java client classes (in
what is now called JDBC driver) should implement the "connector" interfaces
rather than the "sql" interfaces.

And as to the whereabouts of the JDBC API spec, a good place to look for it
is .



----- Original Message -----
From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Peter Kovacs" <peter(dot)kovacs(at)sysdata(dot)siemens(dot)hu>
Cc: "Barry Lind" <barry(at)xythos(dot)com>; "Dmitry Tkach"
<dmitry(at)openratings(dot)com>; <pgsql-general(at)postgresql(dot)org>;
Sent: Saturday, September 28, 2002 6:25 PM
Subject: Re: [JDBC] [GENERAL] Prepared statement performance...

> "Peter Kovacs" <peter(dot)kovacs(at)sysdata(dot)siemens(dot)hu> writes:
> > ... but the SQL 92 spec should be, of course, the
> > ultimate authority in this regard.
> The SQL spec has never heard of JDBC.  I assume there is a spec
> somewhere for the JDBC API, but it's not SQL92 nor SQL99.
> regards, tom lane

In response to

pgsql-jdbc by date

Next:From: jonerf1Date: 2002-09-28 20:04:48
Subject: connecting from openoffice
Previous:From: Tom LaneDate: 2002-09-28 16:25:54
Subject: Re: [JDBC] Prepared statement performance...

pgsql-general by date

Next:From: Marc G. FournierDate: 2002-09-28 20:19:15
Subject: Re: Contribution Problems...
Previous:From: Marc G. FournierDate: 2002-09-28 17:09:12
Subject: Beta2 - A Late Announcement

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