pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Joseph Krogh <andreas@visena.com>
To: pgsql-general@lists.postgresql.org
Subject: Sv: Practical usage of large objects.
Date: Thu, 14 May 2020 09:41:17 +0200 (CEST)
Message-ID: <VisenaEmail.21.581b820415f7eba2.172121e6553@tc7-visena> (raw)
In-Reply-To: <CAAfz9KOa+Os1gjB-8E=XYDPqX7WU6_PY+Gad023Fv1pgA2-XDg@mail.gmail.com>
References: <CAAfz9KOa+Os1gjB-8E=XYDPqX7WU6_PY+Gad023Fv1pgA2-XDg@mail.gmail.com>


På onsdag 13. mai 2020 kl. 19:53:38, skrev Dmitry Igrishin <dmitigr@gmail.com 
<mailto:dmitigr@gmail.com>>: 
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! 

Yea, we use LOs, because using JDBC bytea reallys doesn't stream (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[]. With LOs and java.sql.Blob 
(which the standard pgjdbc-dirver doesn't support ,but pgjdbc-ngdoes) it 
acutally uses strams and memory is kept down to a minimum. 


--
 Andreas Joseph Krogh

Message-ID: <VisenaEmail.21.581b820415f7eba2.172121e6553@tc7-visena>
Permalink:  ../VisenaEmail.21.581b820415f7eba2.172121e6553@tc7-visena/
Also on:    postgresql.org/message-id/VisenaEmail.21.581b820415f7eba2.172121e6553@tc7-visena

 · 

reply

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-general@postgresql.org
  Cc: andreas@visena.com
  Subject: Re: Practical usage of large objects.
  In-Reply-To: <VisenaEmail.21.581b820415f7eba2.172121e6553@tc7-visena>
  References: <CAAfz9KOa+Os1gjB-8E=XYDPqX7WU6_PY+Gad023Fv1pgA2-XDg@mail.gmail.com> <VisenaEmail.21.581b820415f7eba2.172121e6553@tc7-visena>

* 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