Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id B7455632601 for ; Fri, 15 Jan 2010 07:52:13 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 14520-02 for ; Fri, 15 Jan 2010 11:52:02 +0000 (UTC) X-Greylist: delayed 00:06:40.417383 by SQLgrey-1.7.6 Received: from web94901.mail.in2.yahoo.com (web94901.mail.in2.yahoo.com [203.104.17.136]) by mail.postgresql.org (Postfix) with SMTP id 4D718632217 for ; Fri, 15 Jan 2010 07:52:01 -0400 (AST) Received: (qmail 27460 invoked by uid 60001); 15 Jan 2010 11:45:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1263555916; bh=XKDeYPFwqkr8boleaaaKtfCfW2EwRvRqLJru1emJRIo=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=VXOzjMi8XbFtz3Zakk/PoMM+lntPZa8BYmYOgscdeRvI8PV4kaKiqDAcCAaNFO1mke9hMr9+568QVRvwQbbxi/4mcr1lLHM49tGX09GDx3OkAE6OYP8Ahz/n4Gxng4fmKXI8Np0wBOn+729jdTZA7r6ou3A95H1Qt/RlUDpgehM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=gbX7qlV/lHH6fCl1HjbzqRrknJbwI8g9M+ZOsN4j+D6gIb8/6Stky1aIPqtktFaTrrqnZQhF1vawA4n0huLlXgedxjcXnETQOPu7FsI1o7XOyKwz2zkk+Wnzg2p/wD7z1QGQdvO+dL3DkOS/IxfDAcXRcrMFfQ/BVB/rI59u8vM=; Message-ID: <170472.26453.qm@web94901.mail.in2.yahoo.com> X-YMail-OSG: BgjrZxwVM1kzCryuLfaOP..7t_scA2Nvj9REPJQNCgFQLHoOH0YFtoi6GpvZr8.k.y28qYvB9eNMr23QOoMQC9zC7vywIgEzswC_6Q.kl8UraIkzkGl3DhNMqjKrqOi0X9.7osLIYDbekOriTonQAN75jMXjhydSLgEh_kKKKPguP6_UWIF6HtzfvFkRlauhGa8rpDMwhgRiV2BjnaDVJUFuqmi96ZPmJfnhv08133_INJlpwemHgTvsgHKXxerq8updYCY32.Cjichz5x7F72U.o1BImk7i2mjQptPWq2OeWtTPN5MQqkeCnr9EGm2O11wYIYlE0a0RnDY1c_jIpXVieOE- Received: from [202.71.143.50] by web94901.mail.in2.yahoo.com via HTTP; Fri, 15 Jan 2010 17:15:15 IST X-Mailer: YahooMailRC/272.7 YahooMailWebService/0.8.100.260964 Date: Fri, 15 Jan 2010 17:15:15 +0530 (IST) From: Vaibhav Patil Subject: COPY using Hibernate To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1757666603-1263555915=:26453" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.002 tagged_above=-10 required=5 tests=BAYES_50=0.001, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201001/21 X-Sequence-Number: 20217 --0-1757666603-1263555915=:26453 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello All,=0A=0AI am using C3p0 for connection pooling using hibernate. The= connection object returned by that pool does not provide the COPY from STD= IN functionality. Have also checked with the apache dbcp pooling mechanism.= I am using JDBC4 driver with JDK1.6.=0AAs I understand, to support COPY op= eration of postgres using JDBC, the connection object should be an implemen= tation of "PGConnection" interface.=0A=0AI am able to perform the COPY oper= ation if I do not use any connection pooling.=0A=0AI am curious to know, if= postgres provide some sort of connection pooling API which I can integrate= in Hibernate and then use the COPY operation ? =0A=0AThanks,=0AVaibhav.=0A= =0A=0A=0A The INTERNET now has a personality. YOURS! See your Yahoo! H= omepage. http://in.yahoo.com/ --0-1757666603-1263555915=:26453 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hello All,

I am using C3p0 for connection pooling = using hibernate. The connection object returned by that pool does not provi= de the COPY from STDIN functionality. Have also checked with the apache dbc= p pooling mechanism. I am using JDBC4 driver with JDK1.6.
As I understan= d, to support COPY operation of postgres using JDBC, the connection object = should be an implementation of "PGConnection" interface.

I am able t= o perform the COPY operation if I do not use any connection pooling.
I am curious to know, if postgres provide some sort of connection pooling = API which I can integrate in Hibernate and then use the COPY operation ?
Thanks,
Vaibhav.
=0A=0A

=0A=0A=0A=0A