Re: [HACKERS] A suspicious code in pgoutput_startup().

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [HACKERS] A suspicious code in pgoutput_startup().
Дата
Msg-id b36a7e18-97c1-59ab-d720-ba0c4e1cd226@2ndquadrant.com
обсуждение исходный текст
Ответ на [HACKERS] A suspicious code in pgoutput_startup().  (Yugo Nagata <nagata@sraoss.co.jp>)
Ответы Re: [HACKERS] A suspicious code in pgoutput_startup().  (Yugo Nagata <nagata@sraoss.co.jp>)
Список pgsql-hackers
On 7/27/17 20:52, Yugo Nagata wrote:
> 175         /* Check if we support requested protocol */
> 176         if (data->protocol_version != LOGICALREP_PROTO_VERSION_NUM)
> 177             ereport(ERROR,
> 178                     (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
> 179                      errmsg("client sent proto_version=%d but we only support protocol %d or lower",
> 180                             data->protocol_version, LOGICALREP_PROTO_VERSION_NUM)));
> 
> Although the if condition is not-equal, the error message says 
> "we only support protocol %d or lower".  Is this intentional?
> Or should this be fixed as below? 
> 
> 176         if (data->protocol_version > LOGICALREP_PROTO_VERSION_NUM)
> 
> Attached is a simple patch in case of fixing.

Fixed, thanks.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] [COMMITTERS] pgsql: Simplify plpgsql's check for simple expressions.
Следующее
От: Tobias Bussmann
Дата:
Сообщение: Re: [HACKERS] One-shot expanded output in psql using \gx