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

Re: CallableStatements

From: "Dave Cramer" <Dave(at)micro-automation(dot)net>
To: <email(at)gregorybittar(dot)com>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: CallableStatements
Date: 2001-11-26 15:02:09
Message-ID: 01d601c1768b$52472310$8201a8c0@inspiron (view raw or flat)
Thread:
Lists: pgsql-jdbc
Well, given that postgres doesn't support the notion of returning a
result set from a stored procedure; I'm not sure what benefit this would
be.

Regards,

Dave 

-----Original Message-----
From: pgsql-jdbc-owner(at)postgresql(dot)org
[mailto:pgsql-jdbc-owner(at)postgresql(dot)org] On Behalf Of
email(at)gregorybittar(dot)com
Sent: Friday, November 23, 2001 6:47 PM
To: pgsql-jdbc(at)postgresql(dot)org
Subject: [JDBC] CallableStatements


CallableStatements weren't in Postgres as of the last time I checked,
version 7.1.

The JDBC specification has lots of goodies in it, such as examining a
server's metadata and sending cursors backwards and forwards over result
sets.  However, from the perspective of a Java programmer,
CallableStatements are essential tools for communicating with a database
server.

Without the benefit of CallableStatements, all efforts at efficiency are
wasted.  The hallmark of any robust system is distributed processing,
which requires invoking stored procedures on foreign machines.  Doing so
through CallableStatements would
(a) accomplish work and (b) retrieve a result code in one logical
network transmission.  Without CallableStatements, retrieving the result
code not only requires more programming infrastructure, but also taxes
the application at runtime as the Java application tries to discover
what the result of the stored procedure was. This method requires an
additional deletion to purge the logged result code record, lest the log
grow, slowing searches. Therefore, we are looking at considerably more
processing done, 2 or 3 transmissions, where 1 should suffice.

Consequently, I would hope that CallableStatements are recognized as a
very important part of the JDBC puzzle.


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)



In response to

Responses

pgsql-jdbc by date

Next:From: gbittarDate: 2001-11-26 16:15:36
Subject: Re: CallableStatements
Previous:From: Mark MuffettDate: 2001-11-26 15:01:53
Subject: Storing / Retrieving Large Objects

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