Re: Bytea/Base64 encoders for libpq - interested? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Bytea/Base64 encoders for libpq - interested?
Date
Msg-id 27436.999624806@sss.pgh.pa.us
Whole thread Raw
In response to Re: Bytea/Base64 encoders for libpq - interested?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Bytea/Base64 encoders for libpq - interested?  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Let me ask a bigger question.  We have the length of the text string in
> the varlena header.  Are we concerned about backend code not handling
> NULL in text fields, or frontend code returning strings with embedded
> nulls?

The former.

> I see problems in the text() functions for nulls, but is such a
> limitation required for text types?

Unless you want to re-implement strcoll() and friends from scratch.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Larry Rosenman
Date:
Subject: Re: Bytea/Base64 encoders for libpq - interested?
Next
From: Bruce Momjian
Date:
Subject: Re: Escaping strings for inclusion into SQL queries