log message in proto.c - Mailing list pgsql-hackers

From Fujii Masao
Subject log message in proto.c
Date
Msg-id CAHGQGwGm-Vee=_Aa1dK9LNqr89seer+zJSmNtBzsZJ1QoHaN8A@mail.gmail.com
Whole thread Raw
Responses Re: log message in proto.c
List pgsql-hackers
Hi,

src/backend/replication/logical/proto.c
action = pq_getmsgbyte(in);
if (action != 'N')
    elog(ERROR, "expected new tuple but got %d",
    action);

"%d" in the above message should be "%c" because the type of
the variable "action" is char? There are other log messages that
"%c" is used for such variable, in proto.c. Seems the above is
only message that "%d" is used for such variable.

Regards,

-- 
Fujii Masao

Attachment

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: abort-time portal cleanup
Next
From: Michael Paquier
Date:
Subject: Re: PostgreSQL12 and older versions of OpenSSL