| От | Tom Lane |
|---|---|
| Тема | Re: pg_upgrade with large pg_largeobject table |
| Дата | |
| Msg-id | 7806.1534270575@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: pg_upgrade with large pg_largeobject table (Mate Varga <m@matevarga.net>) |
| Список | pgsql-general |
Mate Varga <m@matevarga.net> writes:
>> Using the large-object API for things that tend to not actually be very
>> large (which they aren't, if you've got hundreds of millions of 'em) is an
>> antipattern, I'm afraid.
> I know :( So maybe I need to do some refactoring in the application and
> inline the lobs. The data is binary data with very high entropy (encrypted
> stuff). Would you recommend bytea for that?
Yeah, it'd likely be less of a pain-in-the-neck than text. You would need
some sort of encoding anyway to deal with zero bytes and sequences that
aren't valid per your encoding, so you might as well go with bytea's
solution.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера