pgcat icon indicating copy to clipboard operation
pgcat copied to clipboard

pgcat::server Unknown code: N

Open mingjunyang opened this issue 2 years ago • 0 comments

Describe the bug current version : git 4b78af9676596135bfcf16b049f4b1649a9064ed

pgcat log me this, and create new server connection more and more time, a little crazy behavior.

[ERROR pgcat::server] Unknown code: N [INFO pgcat::pool] Creating a new server connection Address ....

It is the NoticeResponse is not implement, pgcat put an Error when server return a notice to client.

NoticeResponse (B)

    Byte1('N')

        Identifies the message as a notice.
    Int32

        Length of message contents in bytes, including self.

    The message body consists of one or more identified fields, followed by a zero byte as a terminator. Fields can appear in any order. For each field there is the following:

    Byte1

        A code identifying the field type; if zero, this is the message terminator and no string follows. The presently defined field types are listed in [Section 55.8](https://www.postgresql.org/docs/current/protocol-error-fields.html). Since more field types might be added in future, frontends should silently ignore fields of unrecognized type.
    String

        The field value.

Should pgcat proxy pass the NoticeResponse message to the client?

mingjunyang avatar Jun 21 '23 09:06 mingjunyang