Re: OCTET_LENGTH is wrong - Mailing list pgsql-hackers

From Zeugswetter Andreas SB SD
Subject Re: OCTET_LENGTH is wrong
Date
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA421280E@m0114.s-mxs.net
Whole thread Raw
In response to OCTET_LENGTH is wrong  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
> What's bothering me right now is the
> difference between client and server encodings.  It seems that the
only
> plausible use for octet_length is to do memory allocation on the
client
> side, and for that purpose the length ought to be measured in the
client
> encoding.  People seem to be happy with letting octet_length take the
> easy way out (measure in the server encoding), and I'm trying to get
> someone to explain to me why that's the right behavior.  I 
> don't see it.

I agree. octet_length should be the number of bytes the client gets when
he 
does "select textfield from atable".

Andreas


pgsql-hackers by date:

Previous
From: Kevin Jacobs
Date:
Subject: Re: Possible major bug in PlPython (plus some other ideas)
Next
From: Bruce Momjian
Date:
Subject: Re: OCTET_LENGTH is wrong