| От | hubert depesz lubaczewski |
|---|---|
| Тема | Re: large objects |
| Дата | |
| Msg-id | 20150623164920.GA25365@depesz.com обсуждение |
| Ответ на | large objects (Pascal Cloup <ptpas059@gmail.com>) |
| Список | pgsql-novice |
On Tue, Jun 23, 2015 at 03:33:52PM +0200, Pascal Cloup wrote:
> - use the option WITH OIDS during CREATE TABLE or ALTER TABLE
WITH OIDS is in no way related to storing large blobs in tables, and
generally shouldn't be used.
> Is it a good idea to store such large objects in DB? and if so, what is the
> best choice?
In majority of cases, I would say that, storing binary blobs in database
is bad idea. Waste of resources. It's better store them on filesystem,
and in DB just store path to the file.
Best regards,
depesz
--
The best thing about modern society is how easy it is to avoid contact with it.
http://depesz.com/
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера