pglz_decompress()

Поиск
Список
Период
Сортировка
От Hadi Moshayedi
Тема pglz_decompress()
Дата
Msg-id CAK=1=WqC2+=vHFrsPPwKV+-k+EKNi+V2UPSEHwzn4oeguLLyng@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
Hello,

The comments in pg_lzcompress.c say that:

 * If VARSIZE(x) == rawsize + sizeof(PGLZ_Header), then the data
 * is stored uncompressed as plain bytes. Thus, the decompressor
 * simply copies rawsize bytes from the location after the
 * header to the destination.

But pg_lzdecompress doesn't seem to check explicitly for the VARSIZE(x) == rawsize + sizeof(PGLZ_Header) condition. Is it caller's responsibility to check for this condition before calling pg_lzdecompress(), or does it happen somehow in pg_lzdecompress()?

Thanks,
  -- Hadi

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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: jsonb and nested hstore
Следующее
От: David Fetter
Дата:
Сообщение: Re: [pgsql-advocacy] GSoC 2014 - mentors, students and admins