Re: Text format protocol representation - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Text format protocol representation
Date
Msg-id 21139.1052884138@sss.pgh.pa.us
Whole thread Raw
In response to Text format protocol representation  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Text format protocol representation
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> What's the rationale for not including the trailing zero byte in the
> protocol representation of the text format?

History, mostly --- we have not done it in the past.

> The output functions of data
> types generate one, and the client most likely wants one, so it seems
> unreasonable that the protocol cuts it out and the client has to put it
> back.  Is the bandwidth saved worth the extra computation?

Those two considerations seem about a wash to me.  So I'm willing to bow
to backwards compatibility as the deciding factor.  Do you have a fourth
or fifth issue to put into the argument?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Sailesh Krishnamurthy
Date:
Subject: Re: LISTEN/NOTIFY benchmarks?
Next
From: "Zeugswetter Andreas SB SD"
Date:
Subject: Re: GUC and postgresql.conf docs