Re: Binary Large Objects (LOB/BLOB) in Hibernate and JDBC: Unresolved issues

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Binary Large Objects (LOB/BLOB) in Hibernate and JDBC: Unresolved issues
Дата
Msg-id jecofg$jia$1@dough.gmane.org
обсуждение исходный текст
Ответ на Re: Re: Binary Large Objects (LOB/BLOB) in Hibernate and JDBC: Unresolved issues  (Stefan Keller <sfkeller@gmail.com>)
Ответы Re: Re: Binary Large Objects (LOB/BLOB) in Hibernate and JDBC: Unresolved issues  (Stefan Keller <sfkeller@gmail.com>)
Список pgsql-general
Stefan Keller wrote on 08.01.2012 19:13:
>> I think you are better off using bytea unless you need to access only parts
>> of the blob regularly.
>
> That's a valid tip. But it's to the current JDBC implementation to
> take action because it currently leads to disk space leakage when
> using JDBC and JPA/Hibernate.

But only if you use large objects.

 From my perspective bytea is the (only) data type that matches the JDBC BLOB type.
And none of the problems you have occur when using bytea.

There is no match for PG's large objects in the JDBC API so I don't see your claim that it's a fault of the driver.

What's the reason for you to stick with LargeObjects?





В списке pgsql-general по дате отправления:

Предыдущее
От: "Francisco Figueiredo Jr."
Дата:
Сообщение: Re: Is there a reason why Postgres doesn't have Byte or tinyint?
Следующее
От: Stefan Keller
Дата:
Сообщение: Re: Re: Binary Large Objects (LOB/BLOB) in Hibernate and JDBC: Unresolved issues