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

From Rui Pacheco
Subject [HACKERS] How to debug the wire protocol?
Date
Msg-id A7C21A83-ED92-4367-B49C-C6E04A94C3E6@gmail.com
Whole thread Raw
Responses Re: [HACKERS] How to debug the wire protocol?  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: [HACKERS] How to debug the wire protocol?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
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
serverbut 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
logsis, 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
withlog statements where I need them? 

Many thanks,


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] [PATCH] Rename pg_switch_xlog to pg_switch_wal
Next
From: Pavel Stehule
Date:
Subject: Re: [HACKERS] How to debug the wire protocol?