Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 8E3979FA06E for ; Thu, 2 Aug 2007 11:30:37 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 89730-04 for ; Thu, 2 Aug 2007 11:30:31 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by postgresql.org (Postfix) with ESMTP id D1A509FA06D for ; Thu, 2 Aug 2007 11:30:30 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id a2so385737ugf for ; Thu, 02 Aug 2007 07:30:29 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding:sender; b=L5jgRry+KNeq4B2PQN7azSpFFBzUm4iJbnJeJEtqWFaLYJRCq1eAcbAhyNdjtBlroqrtIFwvJ+ZBzMW6YoJYkemgPJlwza1gOlJBPVuoiQ/JB5imjMUG0xToNLGYig/y8HvSNluHfMuiB0F+TUQBfyAZ8s1OJobpUVq0a++baLo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding:sender; b=cyke8BR6meDVP/EmPF9NsHUYvwudbB7MMSN4hsiMkHffCnuoDOYTs6a4sOcGIUOFB3Dizfx96wtmmd5+Nt4OmNOAmGb2oFcF91LHujANigVszrXXG/wGrHCHtFup8+1WuxNJWyAwr+FBb0NSuTg1JKF+6ajgcwQ+8+8JF8UEBYw= Received: by 10.66.249.11 with SMTP id w11mr2176628ugh.1186065028892; Thu, 02 Aug 2007 07:30:28 -0700 (PDT) Received: from ?192.168.1.33? ( [82.247.148.168]) by mx.google.com with ESMTPS id l22sm1301321uga.2007.08.02.07.30.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 02 Aug 2007 07:30:27 -0700 (PDT) Message-ID: <46B1EA7F.7010003@free.fr> Date: Thu, 02 Aug 2007 16:30:23 +0200 From: "Xavier Poinsard" User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Dennis_Thrys=F8e?= CC: pgsql-jdbc@postgresql.org Subject: Re: LargeObject API References: <46B18B42.2020709@conscius.com> In-Reply-To: <46B18B42.2020709@conscius.com> X-Enigmail-Version: 0.94.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/9 X-Sequence-Number: 17322 Hi, You have to chose between database portability and better performance. Personally I am using a BYTEA field and setBytes : this allows me to have portable code across databases and decent performance. Regards. Dennis Thrysøe a écrit : > Hello, > > Is there any way to use the proprietary LargeObject API, without > actually having a reference to the postgresql Drivers's Connection object? > > I need to store (potentially) large chunks of data, so as I read the > documentation I need to use the oid type for performance reasons. > > However, if the application is executing within a j2ee server with > connection pooling, the given Connection instance is just a proxy for > the actual one. > > Otherwise I could possibly use PreparedStatement.setBlob(), but how > could I create a Blob instance? > > I'm not on the mailing list (yet). > > -dennis > --------------------------------------------------------------------------- > The information in this email is confidential and may be legally protected. > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings >