| От | Tom Lane |
|---|---|
| Тема | Re: VARATT_EXTERNAL_GET_POINTER is not quite there yet |
| Дата | |
| Msg-id | 15070.1203623938@sss.pgh.pa.us обсуждение |
| Ответ на | Re: VARATT_EXTERNAL_GET_POINTER is not quite there yet (Gregory Stark <stark@enterprisedb.com>) |
| Ответы |
Re: VARATT_EXTERNAL_GET_POINTER is not quite there
yet
|
| Список | pgsql-hackers |
Gregory Stark <stark@enterprisedb.com> writes:
> "Tom Lane" <tgl@sss.pgh.pa.us> writes:
>> It might work to change struct varlena's contents to something like
>>
>> char vl_len_[4]; /* Do not touch this field directly! */
>> char vl_dat[1];
> Oh, that would probably fix this problem pretty well.
> Touching vl_dat is only safe if you've either just allocated the object
> yourself or you've already detoasted it.
Sure, but that's been true ever since TOAST was first put in. The
varvarlena patch didn't change that coding rule.
I'll go try the char[4] hack and see if it works on the machines I have.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера