need to understand the limitations of each method. The
bytea datatype is not well suited for storing very
large amounts of binary data. While a column of type
- byteabytea> can hold upto 1Gig of binary data, it would
+ byteatype> can hold upto 1Gig of binary data, it would
require a huge amount of memory (
RAM) to
process such a large value. The Large Object method for
storing binary data is better suited to storing very large values,
To use the Large Object functionality you can use either the
- provided by the
PostgreSQLiton>
+ provided by the
PostgreSQLtion>
JDBC Driver, or by using the
getBLOB() and setBLOB()
methods.
and setBLOB() methods may no longer
interact with Large Objects and will instead work on
bytea datatypes. So it is recommended that you
- use the
LargeObject n>API
+ use the
LargeObject m>API
if you intend to use Large Objects.
- The
PostgreSQL n>JDBC Driver
+ The
PostgreSQL m>JDBC Driver
is thread safe.
Consequently, if your application uses multiple threads then you do
not have to worry about complex algorithms to ensure that only one