Re: Recommendation on bytea or blob for binary data like images
В списке pgsql-sql по дате отправления:
| От | Leon Torres |
|---|---|
| Тема | Re: Recommendation on bytea or blob for binary data like images |
| Дата | |
| Msg-id | 431DFA67.4060308@oss.minimetria.com обсуждение исходный текст |
| Ответ на | Re: Recommendation on bytea or blob for binary data like images (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-sql |
Thanks for the quick response. We will be using bytea from now on. :-) - Leon Tom Lane wrote: >leon@oss.minimetria.com writes: > > >>Hi, I'd like to know what the official recommendation is on which binary >>datatype to use for common small-binary size use. >> >> > >If bytea will work for you, it's definitely the thing to use. The only >real drawback to bytea is that there's currently no API to read and >write bytea values in a streaming fashion. If your objects are small >enough that you can load and store them as units, bytea is fine. > >BLOBs, on the other hand, have a number of drawbacks --- hard to dump, >impossible to secure, etc. > > regards, tom lane > > >
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера