|
|
Choosing A Webhost: |
COPY support implemented: msg#00179db.postgresql.jdbc
With the introduction of the V3 protocol in 7.4 it is now possible to support the COPY protocol in the JDBC driver. Before it was impossible to recover from errors and the Connection had to be abandoned. This patch implements support for COPY based on the API proposed by Michael Adler's original patch of about a year ago. For example Connection conn = DriverManager.getConnection(...); CopyManager copy = ((org.postgresql.PGConnection)conn).getCopyAPI(); // copy data from the table to the given output stream OutputStream output = new ByteArrayOutputStream(); copy.copyOut("tablename",output); // copy data from the given input stream to the table InputStream input = new ByteArrayInputStream(output.toByteArray()); copy.copyIn("tablename",input); Kris Jurka
---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Multi-threaded servlet environment, John Sidney-Woollett |
|---|---|
| Next by Date: | ResultSetMetaData enhancements, Kris Jurka |
| Previous by Thread: | previous throws, Keith Bottner |
| Next by Thread: | ResultSetMetaData enhancements, Kris Jurka |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |