Re: [HACKERS] How to debug the wire protocol? - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: [HACKERS] How to debug the wire protocol?
Date
Msg-id CAFj8pRD_oTW_rf1uRcxMLGViYj4QGz5yFCT8O9zzDGkUdGX_GQ@mail.gmail.com
Whole thread Raw
In response to [HACKERS] How to debug the wire protocol?  (Rui Pacheco <rui.pacheco@gmail.com>)
Responses Re: [HACKERS] How to debug the wire protocol?  (Rui Pacheco <rui.pacheco@gmail.com>)
List pgsql-hackers
Hi

2017-02-09 20:01 GMT+01:00 Rui Pacheco <rui.pacheco@gmail.com>:
Hello,

I’ve sent a similar email to the general mailing list but got no reply.

I’m trying to write my own implementation of the wire protocol. I’m stuck at the Parse message where I send it to the server but always get the following error: “Could not parse statement invalid string in message”

Is there a way to see how Postgres parses the message? I’ve set logging to DEBUG5 but the only thing I can see in the logs is, among other things, the message

ERROR:  invalid string in message
FATAL:  invalid frontend message type 63

What is exactly wrong? Is there a way to log the parsing of the message, or should I create my own build of postgres with log statements where I need them?


Regards

Pavel

Many thanks,

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

pgsql-hackers by date:

Previous
From: Rui Pacheco
Date:
Subject: [HACKERS] How to debug the wire protocol?
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] [PATCH] Rename pg_switch_xlog to pg_switch_wal