Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 7751C632601 for ; Fri, 15 Jan 2010 08:00:56 -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 16914-07 for ; Fri, 15 Jan 2010 12:00:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iw0-f195.google.com (mail-iw0-f195.google.com [209.85.223.195]) by mail.postgresql.org (Postfix) with ESMTP id E0FD1632217 for ; Fri, 15 Jan 2010 08:00:45 -0400 (AST) Received: by iwn33 with SMTP id 33so475146iwn.29 for ; Fri, 15 Jan 2010 04:00:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=q03x2C7IXIDzOuaFWlCFUZdfTAz1SDMW92URdrVcVDM=; b=b+nGg/dfjxKGABGH0NeLUBzh2BDds3ZZulO4apbN78++2YjKU0cvT35monMtqQDpGD x8qbRUySmmk4VglgjCzkWXys5Ux/IArg/z4TY+IZ8StO/Kdb4Ar9U1ONzfNEc0HTlMa0 oS8vfqNGLmBcUhRkRJn5V/psnIdoyQQqw2OdE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=rvZx//41/MpWkilEmtovZQYRZS1QwbWPagd81+y452/pGP1clz0k6IwQMx2xSzvLlu Wo6c/OMbVTFr5onW70aUMZE3eQJuexHc6lgj0rSr/JqNkm+tG2q6zRSNswhK8VQtX69C FKkmUU3i0C/VMJpRds6pTxgcRLbsaXIU7HnB4= MIME-Version: 1.0 Received: by 10.231.120.84 with SMTP id c20mr2259069ibr.47.1263556844236; Fri, 15 Jan 2010 04:00:44 -0800 (PST) In-Reply-To: <170472.26453.qm@web94901.mail.in2.yahoo.com> References: <170472.26453.qm@web94901.mail.in2.yahoo.com> Date: Fri, 15 Jan 2010 07:00:44 -0500 X-Google-Sender-Auth: 50049aaeeb109990 Message-ID: <491f66a51001150400sf2c6b04l840af9f01c3e55bb@mail.gmail.com> Subject: Re: COPY using Hibernate From: Dave Cramer To: Vaibhav Patil Cc: pgsql-jdbc@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201001/22 X-Sequence-Number: 20218 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 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.