From: | Andreas Joseph Krogh <andreas(at)visena(dot)com> |
---|---|
To: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Sv: Practical usage of large objects. |
Date: | 2020-05-14 07:41:17 |
Message-ID: | VisenaEmail.21.581b820415f7eba2.172121e6553@tc7-visena |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
På onsdag 13. mai 2020 kl. 19:53:38, skrev Dmitry Igrishin <dmitigr(at)gmail(dot)com
<mailto:dmitigr(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Gavan Schneider | 2020-05-14 07:42:08 | PG12.2 Configure cannot enalble SSL |
Previous Message | Andy Fan | 2020-05-14 07:38:24 | Check what has been done for a uncommitted prepared transaction |