Re: [HACKERS] Custom compression methods

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Custom compression methods
Дата
Msg-id 640855.1616436648@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Custom compression methods  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: [HACKERS] Custom compression methods  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> I think this is significantly cleaner than what we have now, and I
> also prefer it to your proposal.

+1 in general.  However, I suspect that you did not try to compile
this without --with-lz4, because if you had you'd have noticed the
other uses of NO_LZ4_SUPPORT() that you broke.  I think you need
to leave that macro where it is.  Also, it's not nice for GUC check
functions to throw ereport(ERROR); we prefer the caller to be able
to decide if it's a hard error or not.  That usage should be using
GUC_check_errdetail() or a cousin, so it can't share the macro anyway.

            regards, tom lane



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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Fix pg_upgrade to preserve datdba
Следующее
От: James Coleman
Дата:
Сообщение: Re: Nicer error when connecting to standby with hot_standby=off