Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZ8Ue-0003Rz-Jq for pgsql-general@arkaria.postgresql.org; Thu, 14 May 2020 07:41:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jZ8Ud-0000zq-GL for pgsql-general@arkaria.postgresql.org; Thu, 14 May 2020 07:41:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZ8Ud-0000x8-4N for pgsql-general@lists.postgresql.org; Thu, 14 May 2020 07:41:23 +0000 Received: from post.visena.com ([46.226.10.50]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.92) (envelope-from ) id 1jZ8UZ-0005Zu-TA for pgsql-general@lists.postgresql.org; Thu, 14 May 2020 07:41:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=visena.com; s=20141101.wh; h=Content-Type:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From:Date; bh=IcT3INSK6GOAfAz0wuxq4rTAOlmh459byC1tJalNCxE=; b=KTiCreJ+SNsIzC2l/KReXVVJTQGXZTS3f7nxhHnJyCtelS/wW3hxp9Ee71t9Uodx7FVSOwre1PZLdvUE20TEe1VGu4gYydwb21Ysrcb3920zz5zFNYvD9vnDruxqH0P4+v/Ic7KKCs/TCxRBCHnLQ/Xga42sdjDcV+gEk6wtWMw=; Received: from [10.0.1.10] (helo=tc7-visena.wh.internal.visena.com) by post.visena.com with esmtp (Exim 4.82) (envelope-from ) id 1jZ8UX-0002cW-H9 for pgsql-general@lists.postgresql.org; Thu, 14 May 2020 09:41:17 +0200 Received: from localhost ([127.0.0.1] helo=tc7-visena.wh.internal.visena.com) by tc7-visena.wh.internal.visena.com with esmtp (Exim 4.90_1) (envelope-from ) id 1jZ8UX-000135-FT for pgsql-general@lists.postgresql.org; Thu, 14 May 2020 09:41:17 +0200 Date: Thu, 14 May 2020 09:41:17 +0200 (CEST) From: Andreas Joseph Krogh To: pgsql-general@lists.postgresql.org Message-ID: In-Reply-To: References: Subject: Sv: Practical usage of large objects. MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_120_2052702148.1589442077417" X-Mailer: Visena Mail 2.2.294 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_120_2052702148.1589442077417 Content-Type: multipart/related; boundary="----=_Part_121_2013470068.1589442077417" ------=_Part_121_2013470068.1589442077417 Content-Type: multipart/alternative; boundary="----=_Part_122_1772871898.1589442077427" ------=_Part_122_1772871898.1589442077427 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable P=C3=A5 onsdag 13. mai 2020 kl. 19:53:38, skrev Dmitry Igrishin >:=20 Hello all, As you know, PostgreSQL has a large objects facility [1]. I'm curious are there real systems which are use this feature? I'm asking because and I'm in doubt should the Pgfe driver [2] provide the convenient API for working with large objects or not. Thanks!=20 Yea, we use LOs, because using JDBC bytea reallys doesn't stream (at least= =20 using the pgjdbc-ng driver). When retrieving bytea using JDBC it retunrs an= =20 InputStream but it's backed by an in-memory byte[]. With LOs and java.sql.B= lob=20 (which the standard pgjdbc-dirver doesn't support ,but pgjdbc-ngdoes) it=20 acutally uses strams and memory is kept down to a minimum.=20 -- Andreas Joseph Krogh ------=_Part_122_1772871898.1589442077427 Content-Type: text/html;charset=UTF-8 Content-Transfer-Encoding: quoted-printable
P=C3=A5 onsdag 13. mai 2020 kl. 19:53:38, skrev Dmitry Igrishin <dmitigr@gmail.com>:
Hel= lo all,

As you know, PostgreSQL has a large objects facility [1]. I'm curious
are there real systems which are use this feature? I'm asking because
and I'm in doubt should the Pgfe driver [2] provide the convenient API
for working with large objects or not.

Thanks!
=C2=A0
Yea, we use LOs, because using JDBC bytea reallys doesn't=C2=A0str= eam (at least using the pgjdbc-ng driver). When retrieving bytea using= JDBC it retunrs an InputStream but it's backed by an in-memory byte[]. Wit= h LOs and java.sql.Blob (which the standard pgjdbc-dirver doesn't support ,= but pgjdbc-ng does)=C2=A0it acutally uses strams and memory is kep= t down to a minimum.
=C2=A0
">
--
Andreas Joseph Krogh
------=_Part_122_1772871898.1589442077427-- ------=_Part_121_2013470068.1589442077417-- ------=_Part_120_2052702148.1589442077417--