Re: pgsql: Move pg_lzcompress.c to src/common.

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: pgsql: Move pg_lzcompress.c to src/common.
Дата
Msg-id CAHGQGwHLeCcC1gdvWUT1Z4HdLdYM8UnY_-+oAkuJpBGLEmc-Ug@mail.gmail.com
обсуждение исходный текст
Ответ на pgsql: Move pg_lzcompress.c to src/common.  (Fujii Masao <fujii@postgresql.org>)
Ответы Re: pgsql: Move pg_lzcompress.c to src/common.  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-committers
On Thu, Dec 25, 2014 at 8:47 PM, Fujii Masao <fujii@postgresql.org> wrote:
> Move pg_lzcompress.c to src/common.
>
> Exposing compression and decompression APIs of pglz makes possible its
> use by extensions and contrib modules. pglz_decompress contained a call
> to elog to emit an error message in case of corrupted data. This function
> is changed to return a status code to let its callers return an error instead.
>
> This commit is required for upcoming WAL compression feature so that
> the WAL reader facility can decompress the WAL data by using pglz_decompress.

Hmm... the buildfarm member prairiedog doesn't like this change. Because
pg_lzcompress.c uses the macros (like VARSIZE) for varlena datatypes which
are defined in postgres.h which client-side should not include. ISTM that
pg_lzcompress.c should be changed to be "varlena-free", in order to push it
in src/common.

Regards,

--
Fujii Masao


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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: pgsql: Move pg_lzcompress.c to src/common.
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Move pg_lzcompress.c to src/common.