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

From Greg Stark
Subject Re: Text format protocol representation
Date
Msg-id 877k8joz88.fsf@stark.dyndns.tv
Whole thread Raw
In response to Re: Text format protocol representation  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Text format protocol representation
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> Greg Stark <gsstark@mit.edu> writes:
> > nuls in strings aren't allowed, eh? Is there any possibility that nuls in
> > strings will be supported at some time in the future?
> 
> Not much.  Use bytea if you want to store binary data.

Oh, I don't. I was just mentioning that if you append a nul in the protocol
and allow applications to use that instead of the length provided then you've
pretty much committed to never allowing nuls in text/varchars.

[Incidentally, nul is not the same concept as NULL, don't mix the two]

-- 
greg



pgsql-hackers by date:

Previous
From: Olleg Samojlov
Date:
Subject: Re: Scheduled jobs
Next
From: Jean-Michel POURE
Date:
Subject: Tetra-bytes database / large indexes needs