From: Dave Cramer <pg@fastcrypt.com>
To: Vaibhav Patil <infovaibhav@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: COPY using Hibernate
Date: Fri, 15 Jan 2010 07:00:44 -0500
Message-ID: <491f66a51001150400sf2c6b04l840af9f01c3e55bb@mail.gmail.com> (raw)
In-Reply-To: <170472.26453.qm@web94901.mail.in2.yahoo.com>
References: <170472.26453.qm@web94901.mail.in2.yahoo.com>
Hi Vaibhav
C3p0 provides a mechanism to get at the underlying connection and
statement. search for c3P0 underlying connection
dave
On Fri, Jan 15, 2010 at 6:45 AM, Vaibhav Patil <infovaibhav@yahoo.com> wrote:
> Hello All,
>
> I am using C3p0 for connection pooling using hibernate. The connection
> object returned by that pool does not provide the COPY from STDIN
> functionality. Have also checked with the apache dbcp pooling mechanism. I
> am using JDBC4 driver with JDK1.6.
> As I understand, to support COPY operation of postgres using JDBC, the
> connection object should be an implementation of "PGConnection" interface.
>
> I am able to 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.
>
> ________________________________
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: pg@fastcrypt.com, infovaibhav@yahoo.com
Subject: Re: COPY using Hibernate
In-Reply-To: <491f66a51001150400sf2c6b04l840af9f01c3e55bb@mail.gmail.com>
References: <170472.26453.qm@web94901.mail.in2.yahoo.com> <491f66a51001150400sf2c6b04l840af9f01c3e55bb@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox